logo
search
Permission & Access Issues

How to Fix Excel or Word File Locked for Editing After a Crash

Khadija KhanKhadija Khan Oct 1, 2026 868 views

Question details

The user needs to remove the locked for editing restriction on an MS Word or Excel document that remains locked by themselves after an unexpected system or application crash.

How to Fix Excel or Word File Locked for Editing After a Crash
Product
Microsoft Word, Microsoft Excel
Device & OS
Windows
Scenario
Attempting to reopen a document after the computer or Office application crashed unexpectedly.
Observed behavior
The file displays a prompt stating it is locked for editing by the user, preventing write access even though no Office applications are currently running.
Before you start

Ensure that your Office application is completely closed and verify that no other users are currently working on the file if it is stored on a shared network drive.

Solution 1Recommended

Force Close Office Processes and Delete the Temporary Lock File

This is the most effective method for unlocking a local file by manually removing the hidden owner file left behind after a crash.

When you open an Office file, a temporary owner file is created. A crash prevents this file from deleting automatically, which falsely triggers the locked status.

1
End background Office processes

Press Ctrl + Shift + Esc to open Task Manager. Look for Microsoft Word or Microsoft Excel in the Processes tab, right-click them, and select End task.

2
Enable hidden items in File Explorer

Open File Explorer and navigate to the folder containing your locked document. Click the View tab at the top and check the box for Hidden items.

3
Delete the temporary file

Look for a file in the same folder that starts with ~$ and shares the name of your document (e.g., ~$MyDocument.docx). Right-click this file and delete it.

4
Reopen the document

Launch Word or Excel and open your document normally. The locked for editing prompt should no longer appear.

Force Close Office Processes and Delete the Temporary Lock File
File Unlocked: Your file is now fully accessible for editing and saving.
Free Microsoft Office alternative

Experience Crash-Resistant Editing with WPS Office

Tired of dealing with locked files and app crashes? WPS Office is a free, lightweight, and highly stable alternative to Microsoft Office. It offers a built-in auto-backup feature to prevent data loss during sudden crashes and provides a seamless editing experience for all your documents.

  1. 1. Download and Install: Visit the official WPS Office website to download the free installation package for your operating system.
  2. 2. Open Your Files: Launch WPS Office and directly open your existing Microsoft Word or Excel files with zero compatibility issues.
  3. 3. Enable Auto-Backup: Go to Settings and ensure the local auto-backup feature is active to protect your work from future computer crashes.
Fully compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint formats.Lightweight software ensures faster performance and fewer system hangs.Built-in auto-backup and document recovery automatically rescues your work during unexpected crashes.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my file stay locked after a computer crash?

When Office opens a file, it generates a hidden temporary owner file (starting with ~$) to prevent multiple users from editing it simultaneously. If your computer crashes, this file isn't automatically deleted, causing the system to mistakenly believe the file is still actively in use.

Can I just save the locked file with a different name?

Yes. If you need immediate access to your data and cannot find the lock file, you can open the locked file in Read-Only mode and use the 'Save As' function to create a new, editable copy of the document.

What if I can't see the temporary ~$ file in my folder?

Temporary owner files are categorized as hidden system files. In File Explorer's Folder Options (under the View tab), you must both check 'Show hidden files, folders, and drives' and uncheck 'Hide protected operating system files' to make them visible.

Does this locked file issue happen on Mac computers?

Yes, Mac versions of Office also create temporary lock files. However, they are managed differently by the macOS file system. Restarting your Mac usually clears these locks, or you can use the Mac Terminal to locate and remove hidden lock files.