Fix 'File Locked for Editing by Another User' in Microsoft Office
Question details
Users need to understand why Office files get locked for editing, why a generic 'another user' message appears instead of a specific name, and how to unlock the document.

- Product
- Microsoft Office
- Device & OS
- not provided
- Scenario
- Opening a shared document, a document on a network drive, or a file after an unexpected application crash.
- Observed behavior
- Microsoft Office prevents editing by displaying a 'File locked for editing by another user' message, often failing to identify the specific user holding the lock.
Verify that no other users are actively editing the document on a shared network drive or cloud storage before attempting to force-unlock it.
Remove Stale Temporary Owner Files
Resolve file locks caused by an unexpected Office crash that leaves behind hidden temporary files.
When you open a file, Microsoft Office creates a temporary owner file (usually beginning with '~$') in the same directory. If Office closes unexpectedly, this file may remain and cause a false lock message.
Save any open work and completely close all Microsoft Office applications.
Open File Explorer, go to the 'View' tab, and check the box for 'Hidden items' so you can see hidden system files.
Navigate to the folder containing the locked document. Look for a file with the same name but starting with '~$'. Right-click this file and select 'Delete'.

Close Hidden Office Background Processes
Terminate background processes that may be secretly keeping your file open and locked.
Clear Cloud Storage & Network Server Sessions
Fix file locks on documents hosted on SharePoint, OneDrive, or shared network locations.
Avoid File Locking Hassles with WPS Office
Tired of confusing file locks and hidden temporary files? Try WPS Office, a fast, lightweight, and completely free Microsoft Office alternative that offers seamless real-time collaboration and perfect compatibility with Word, Excel, and PowerPoint files.
- 1. Download WPS Office: Visit the official WPS website and download the free installer for your operating system.
- 2. Install the software: Run the setup file and follow the quick installation prompts.
- 3. Open your files instantly: Double-click any Word, Excel, or PowerPoint document to open it seamlessly in WPS Office without lock errors.

Frequently Asked Questions
Where does Microsoft Office get the name for the locked file message?
Office extracts the name from a temporary owner file (starting with '~$'), a file-lock record, or a server session on your network. If the exact username isn't passed by the server, it defaults to generic text.
Why does it say 'another user' instead of a specific person's name?
This usually happens on shared network locations or third-party cloud servers where the system either fails to provide the person's full name credentials to Office, or the lock is held by a system process rather than a specific user account.
What is a stale owner file and how is it created?
A stale owner file is a temporary file (e.g., '~$Document.docx') that Microsoft Office creates while you are editing. If the app crashes or closes improperly, this file isn't deleted automatically, tricking Office into thinking the file is still open.
Can I edit a file while it is locked for editing?
You cannot save changes directly to the original locked file. However, you can open it in 'Read-Only' mode, make your edits, and use 'Save As' to create a new copy of the document.




