Permission & Access Issues

Remove an Excel Read-Only Lock on a Shared CSV File

Algirdas JasaitisAlgirdas Jasaitis Nov 25, 2026 868 views

Question details

The user needs to edit a shared CSV file that Excel reports as locked by another user.

Remove an Excel Read-Only Lock on a Shared CSV File
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.
Before you start

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.

Solution 1Recommended

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.

1
Close Excel

Ask everyone using the shared file to close it, then close Excel on all affected computers.

2
Show hidden files

In File Explorer, open the shared folder. On Windows 10, select View and check Hidden items; on Windows 11, select View > Show > Hidden items.

3
Remove the matching lock file

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.

4
Test the CSV

Open the original CSV in Excel and check whether you can edit and save it to the shared folder.

Remove an Orphaned Excel Lock File
No matching lock file?: Do not delete unrelated temporary files. Check the shared folder permissions and network access instead.
Free Microsoft Office alternative

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.

Open and edit CSV files in WPS SpreadsheetsCompatible with Microsoft Excel formats, including XLSXFamiliar spreadsheet interface for an easier transitionFree and lightweight Office alternative
microsoft office alternative - wps office

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.