Excel Error when opening read-only - This workbook is locked for editing by another user

Ludwig

Board Regular
Joined
Apr 7, 2003
Messages
80
Office Version
  1. 365
Platform
  1. Windows
The XLSM file is stored in OneDrive. If I open the file for editing, all is good, everything works.

If however I mark it read-only in the Properties tab -or- open it with Excel 2016 on Windows 10 using the /R switch, Excel gives me a line with yellow background telling me --

< bang > READ-ONLY This workbook is locked for editing by another user. < button labelled "Save As" >


I can prove to myself that it isn't locked by another user by copying the file using Explorer then opening it. Open it with no read-only flag set in Properties, no msg (about locked by another user). If I then change that flag and open it, Excel gives me the error message. Toggling this setting will consistently turn this error message ON or OFF.
Similarly, opening Excel using the /R switch and the filename (with read-only property unticked) reports the same message.
When I check the status of OneDrive it reports "OneDrive is to date".

Same also happens if I use right-click to create a new XLSX workbook in Explorer (obviously, no content & no chance yet for anyone else to open it!). The moment I change the property to read-only Excel gets upset that it is read-only.

Why is Excel telling me it's read-only, or I only have read-only access? I know ... I made that "true" myself.


I know I can discard the line by clicking the X at the right-hand end, but I would like Excel to stop producing this message. Once users start accessing the file (probably thru Sharepoint 365), I don't want them to get the same message as it might well confuse them! It's only recently started to happen. Does anyone have any ideas how this might be achieved.
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,214,651
Messages
6,120,744
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top