Remove an Excel Read-Only Lock on a Shared CSV File
Question details
The user needs to edit a shared CSV file that Excel reports as locked by another user.

- Product
- Microsoft Excel
- Device & OS
- Windows 10 on a working computer; affected device not provided
- Scenario
- A CSV file is stored on a shared drive and needs to be opened for editing in Excel.
- Observed behavior
- Excel reports that the CSV file is locked by another user and may open it as read-only.
Confirm that nobody is editing the CSV and ask users to close it in Excel. Locate the CSV on the shared drive and make sure you have permission to view hidden files and manage files in that folder.
Remove an Orphaned Excel Lock File
Use this method if a previous Excel or Windows crash may have left a temporary lock file in the shared folder.
A hidden file beginning with ~$ may be a leftover Office owner file. Such a file is not always present for a CSV, so its absence does not rule out another type of lock.
Ask everyone using the shared file to close it, then close Excel on all affected computers.
In File Explorer, open the shared folder. On Windows 10, select View and check Hidden items; on Windows 11, select View > Show > Hidden items.
Look for a hidden file whose name begins with ~$ and corresponds to the CSV, such as ~$filename.csv. If you confirm it is an orphaned lock file and nobody is editing the CSV, delete that file, not the original CSV.
Open the original CSV in Excel and check whether you can edit and save it to the shared folder.

Check Share Permissions and Other Causes of the Lock
Use these checks if no matching lock file exists or the CSV remains read-only.
Open and Edit CSV Files with WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. It supports CSV and Microsoft Excel formats, making it easy to move between common spreadsheet files. It does not bypass shared-drive locks or permissions.

Frequently Asked Questions
What does a file beginning with ~$ mean?
It may be a temporary Office owner file. If it matches your document and remains after everyone closes Excel, it may be orphaned. CSV files do not always have a visible ~$ file.
How do I show a hidden lock file in Windows?
In File Explorer on Windows 10, open the shared folder, select View, and check Hidden items. On Windows 11, select View > Show > Hidden items.
What if deleting the lock file does not fix read-only access?
Check the CSV's Properties and ask an administrator to verify share and folder write permissions. Also check network connectivity, Offline Files, antivirus activity, and any stale server-side open handle.
Can I edit the shared CSV in WPS if Excel says it is locked?
WPS Spreadsheets can open CSV files, but it cannot bypass an active file lock or missing share permissions. Resolve the lock or access issue before saving changes to the shared location.




