Save to a read only file.

GreenArmy

New Member
Joined
Nov 24, 2010
Messages
1
Hi, Using VBA I need to be able to update a workbook whilst other users are using the file, As the file contains Pivots I cant simply share the file (using XL 2003 - upgrading is not an option). I thought I could lock the sheet down by making it read only password protected however the code which I am using to try to open the sheet does not run. Please could someone suggest a way to do this.

ActiveWorkbook.SaveAs Filename:= _
"\\lon0467xns\CogReporter\PVfiles\PV REC\PVREC_Pivots.xls", FileFormat:= _
xlNormal, Password:="", WriteResPassword:="PASSWORD", ReadOnlyRecommended:=True, _
CreateBackup:=False
 

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