xla & workbook_beforesave

sython

New Member
Joined
May 31, 2012
Messages
10
Hi all, this one is causing me a bit of a problem. Hope i get the problem across !.

I have a template which i update regularly, this template gets used daily, and files are saved from it.
Over the years we have lots of these files. People open old versions of these rather than using the new template. I want a way to stop people from opening old workbooks and doing a save as.
In the workbooks, is a date, in a cell which i update every-time i make a new revision.
The only solution I can think of, is to create a macro in a Excel Addin to check my revision date in the old workbook which is being opened, against the templates date. if the date is older, then not allow the user to save the file. I can do this using the workbook_beforesave function (I think).
Only problem is getting the new macro to run, in the old workbooks. This can be done by the Addins, but ive read that the XLA doesnt refer to the Active workbook when using the workbook_beforesave function. Is there another way todo this?
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

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