Appearance
How to Fix "File Locked for Editing by Another User" in Office
Applies to: Microsoft 365 (Word, Excel, PowerPoint desktop apps); Windows 11, Windows 10; OneDrive, SharePoint, network drives
Article Type: Troubleshooting
Last Updated: 2026-07-29
Summary
Word, Excel, and PowerPoint block a second person from editing the same file at the same time, and the resulting message is right about a third of the time. This article separates a genuine lock from a phantom one and gives you the fix for each: notifications while you wait, a leftover owner file to delete, a crashed process to end, and the check-in controls that release a file stored in SharePoint or OneDrive.
Symptoms
- A dialog titled File In Use appears, reading
<file name> is locked for editing by '<person>'. - The named person insists they closed the file hours ago, or is out of the office.
- The message names you, or shows
another user,an unknown user, or a blank name. - The file opens, but a yellow Read-Only banner sits across the top and your edits cannot be saved.
- Saving produces
Your changes could not be saved because the file is lockedor prompts you to save under a different name. - In SharePoint or a synced OneDrive library, the file shows a small arrow badge and a Checked Out To value.
Prerequisites
- The file open in Word, Excel, or PowerPoint on Windows, or accessible in the SharePoint or OneDrive web interface.
- Permission to edit the file. A read-only permission produces a similar banner for an entirely different reason — see Understanding File Sharing and Permissions in Microsoft 365. If Windows itself blocks the rename or delete with
You need permission to perform this action, work through How to Fix "You Need Permission to Perform This Action" instead. - No admin rights required for any step in this guide.
Instructions
1. Read the Message — It Usually Names the Person
The dialog tells you which of three situations you are in, and the rest of this guide branches from that.
- Read the name inside the quotation marks in the File In Use dialog. Office reports whoever was recorded as the file's owner when it was last opened.
- Match what you see to one of these three cases:
- A colleague's name you recognise, and they are at their desk. The lock is genuine. Go to Step 2.
- A colleague's name, but they closed the file, went home, or left the company. The lock is a leftover. Go to Step 5, or Step 6 if the file lives in SharePoint or OneDrive.
- Your own name,
another user,an unknown user, or a blank name. Your own computer or account is holding the file. Go to Step 3.
- Note where the file is stored before you continue — the title bar of the File In Use dialog shows the file name, and the address bar in File Explorer shows the folder. A file under
OneDrive - <your company>or a synced SharePoint library behaves differently from one on a network drive, and Step 6 covers those.
Note: Word, Excel, and PowerPoint use different wording for the same condition. Word says
is locked for editing by, Excel saysis locked for editing by ... Open Read-Only or click Notify, and PowerPoint opens the file read-only with a banner rather than a dialog. The cause is identical in all three.
2. Wait Productively — Use Notify or Open Read-Only
When someone genuinely has the file open, stop reopening it every two minutes. Office watches the file for you.
- In Word: in the File In Use dialog, select the third option, Receive notification when the original copy is available, then click OK. The file opens read-only.
- In Excel: in the File In Use dialog, click Notify (the middle button, between Read Only and Cancel). The file opens read-only.
- Keep the file open and carry on with other work. When the other person closes it, a File Now Available message appears on top of your window with a Read-Write button. Click it and your read-only copy reloads as an editable one.
- In PowerPoint: no notification option exists. Click Read Only, or ask the person holding it to close the deck.
Tip: If the file is on OneDrive or SharePoint and everyone opens it in the web app or in a fully updated desktop app, this lock stops happening entirely — several people can type in the same document at once. See How to Co-Author Documents in Real Time.
3. Close the File Everywhere You Have It Open
Office does not distinguish between you and a stranger. A copy open on your own second device holds the file exactly as firmly.
- Check your other computer. A laptop left running at home with the same document open, signed in to the same work account, produces a lock that names you.
- Check your browser tabs. A file open in Word for the web, Excel for the web, or in a Teams tab counts as an open session. Close the tab rather than leaving it in the background.
- Check your phone and tablet. The Word and Excel mobile apps keep a file open until you back out of it.
- Turn off the File Explorer preview. In File Explorer, open the View menu on the toolbar, point to Show, and clear Preview pane. The preview pane opens Office files to render them, and on a network drive it holds a lock while a file is merely selected.
- Close the Outlook reading pane preview. If you opened the attachment version of this file from an email, click any other message so Outlook releases it.
- Try opening the file again. If the message has gone, you are done.
Verification: Open the file and confirm the title bar shows the document name with no Read-Only suffix after it, and that typing a character is accepted.
4. End a Crashed Office Process in Task Manager
An Office app can close its window while the underlying process keeps running — and keeps holding every file it had open.
- Press Ctrl + Shift + Esc to open Task Manager.
- Select Processes in the left sidebar. On Windows 10, click More details at the bottom first if the window shows only a short app list.
- Look under Apps and then under Background processes for Microsoft Word, Microsoft Excel, or Microsoft PowerPoint. A crashed instance usually sits in Background processes with no window attached.
- Right-click the entry and select End task. The row disappears from the list.
- Repeat for every Office entry you find. Ending them closes any unsaved windows, so save open work first.
- Open the file again.
Note: If the same process reappears within seconds each time you end it, sign out of Windows and back in. That clears every process your account owns without a full restart.
5. Delete the Hidden Owner File
When Office opens a document, it writes a small hidden file beside it recording who has it. A crash leaves that file behind, and the next person to open the document is told the crashed user still has it.
- Open File Explorer and navigate to the folder containing the document.
- Show hidden files. On Windows 11, open the View menu on the toolbar, point to Show, and select Hidden items. On Windows 10, open the View tab on the ribbon and tick Hidden items. Faded file icons appear alongside the normal ones.
- Find the owner file. Its name begins with
~$and the rest of it looks like a shortened version of your document's name —Q3 Budget.xlsxproduces~$Q3 Budget.xlsx, andTeam Handbook.docxproduces~$am Handbook.docxbecause Word replaces the first two characters with~$. The file is around 1 KB and shares your document's file type. - Confirm nobody has the document open, then right-click the
~$file and select Delete. It vanishes from the folder. - Open your document. It opens with full edit rights, and Office writes a fresh owner file in the background.
- Hide hidden items again by reversing Step 2, so the
~$files stop cluttering your folders.
Verification: Type a character in the document and press Ctrl + S. The save completes with no dialog, and the Read-Only wording is gone from the title bar.
6. Check In or Discard Check Out in SharePoint and OneDrive
A file in SharePoint or OneDrive can be checked out, which is a deliberate lock rather than a side effect. Deleting files on your PC does not release it — the release happens in the browser.
- Open the document library in your browser. From File Explorer, right-click the synced file and select OneDrive > View online, or open the Files tab in the relevant Teams channel and click Open in SharePoint.
- Find the file in the list. A checked-out file shows a small green arrow badge on its icon.
- Add the owner column if you cannot tell who holds it. Click Add column at the far right of the column headers, select Show/hide columns, tick Checked Out To, and click Apply. The person's name appears in the new column.
- Select the file by clicking the circle to the left of its name, then click the three dots in the toolbar above the list and select More.
- Choose your action:
- Check in — releases the lock and keeps the changes the other person made. Use this when they finished the work and forgot the last click.
- Discard check out — releases the lock and throws away every change made since check-out. Use this only when their edits are known to be unwanted.
- Confirm in the dialog that appears. The green arrow badge disappears and the Checked Out To column empties.
Note: Check-out is a deliberate workflow rather than a fault — How to Check Out and Check In Files in SharePoint covers when to use it and how to avoid leaving files locked. You can always check in or discard your own check-out. Doing it on someone else's requires site owner rights. If the option is greyed out, send your SharePoint site owner or IT this message: "Please discard the check-out on the file" — then give them the file name, the library it is in, and the name shown in the Checked Out To column. They can release it in under a minute.
7. Rescue Your Edits from Version History
If you spent twenty minutes editing a read-only copy before noticing, the work is recoverable.
- Save your read-only copy under a new name. In the app, click File > Save a Copy (or Save As), add
-my-editsto the file name, and save it to your Desktop. - Open the original file once the lock is released.
- Compare the two. In Word, click Review > Compare > Compare, choose the original as Original document and your copy as Revised document, then click OK. Word opens a third document marking every difference.
- Copy the paragraphs you want into the original and save.
- If the other person overwrote your work in the shared file instead, open version history to pull back the earlier version — see How to Restore a Previous Version of a File in OneDrive.
Troubleshooting
DANGER
Delete only files whose name begins with ~$. These are temporary owner files that Office recreates automatically, and removing one never affects your document. Deleting the document itself destroys the work, and on a network drive it may not be recoverable from a Recycle Bin.
| Symptom / Error | Potential Cause | Solution |
|---|---|---|
| Message names you personally | Your own second device or session | Follow Step 3 — check other computers, browser tabs, mobile apps, and the File Explorer preview pane. |
| Message names someone who left the company | Stale owner file or check-out | Delete the ~$ owner file (Step 5). For SharePoint or OneDrive files, use Discard check out (Step 6). |
No ~$ file visible in the folder | Hidden items still switched off | Turn on Hidden items in the View menu as described in Step 5, then look again. |
~$ file will not delete — "file is in use" | Office process still running | End the Microsoft Word or Microsoft Excel task in Task Manager (Step 4), then delete the file. |
You need permission to perform this action | Windows file permissions, not an Office lock | This is a different error with a different fix — see How to Fix "You Need Permission to Perform This Action". |
| Lock returns within seconds of being cleared | Sync client re-downloading a queued copy | Let OneDrive finish syncing before reopening. If it never finishes, see How to Fix OneDrive Sync Problems — Pending, Stuck, or Files Not Uploading. |
| "Discard check out" is greyed out | You are not the owner of the check-out | Ask your site owner or IT to discard it, giving them the file name, the library, and the value in the Checked Out To column. |
Related Articles
- How to Check Out and Check In Files in SharePoint
- How to Fix Duplicate Conflict Copies of Files in OneDrive
- How to Co-Author Documents in Real Time
- How to Restore a Previous Version of a File in OneDrive
- How to Fix OneDrive Sync Problems — Pending, Stuck, or Files Not Uploading
- Understanding File Sharing and Permissions in Microsoft 365
- How to Fix "You Need Permission to Perform This Action"
- Understanding Where Your Files Live — OneDrive vs. SharePoint vs. Teams
- Understanding Network Drives vs. Cloud Storage — Where to Save Your Files