Prevent saving edited workbook

angusl

Board Regular
Joined
Apr 15, 2002
Messages
55
I have a workbook with numerous formulas. The may at times overwrite the formulas with values. User will then print the worksheet. But I don't want it saved that way. The next time the workbook is opened I want the formulas to be there. The 'password to modify' isn't working the way I expect it to. I want to display a message if the user tries to save after making changes and prevent the save from taking place. Any suggestions?
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Save your workbook as a Template, using password to open. This will allow people to open a COPY of the workbook to use, but prevent them from overwriting the original.
 
Upvote 0
My Excel workbook is an object, clled from a VB program. The password protected template doesn't seem to work in this case. It lets me save the template without a password. When I open the template by itself, it saves as an XLS with a "1" added to the end of the filename. But from VB it lets me save a revised XLT. Maybe I need to intercept the 'save' from within VB and display a message. Any ideas for the event (property, method?) to look for?
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,211
Members
448,554
Latest member
Gleisner2

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