Read-only and Saving

kenjohnson_342

Board Regular
Joined
Feb 14, 2007
Messages
69
I've gotta be missing something silly so I feel stupid, but here is what I'm trying to accomplish:

Master file saved on my hard-drive. I save a copy to a Shared folder on our server for other people to use. I want them to be able to make changes to extract the data they need, but I don't want them to be able to save their changes.

I know I can password protect the Write/Modify rights and recommend they open as Read-Only. But I don't want to have to explain a hundred times that each person does not have a password and they need to click the read only box.

Is there a way I can save this file so they automatically open in a way that they cannot save changes without prompts or popup boxes?

Thanks.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
Now this seems really tricky, i think what you can do is open the workbook with macro disabled then add below code in workbook section
Code:
Private Sub Workbook_BeforeSave (ByVal SaveAsUI As Boolean, Cancel As Boolean) 
    '  Following line will prevent all saving
    Cancel = True
    '  Following line will prevent the Save As Dialog box from showing
    If SaveAsUI then SaveAsUI = False
End Sub
Then save the file and reopen with macro enabled and test if the code works,
Also you need to force your workbook users to enable macros. This is also possible with macros.
 
Upvote 0

Forum statistics

Threads
1,224,547
Messages
6,179,436
Members
452,915
Latest member
hannnahheileen

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