Hi,
Bit of a strange one this.
I have two workbooks, one a Tracker which houses the majority of data and code and the other a Timeline which is largely controlled by the Tracker but also has some small amount of code.
The Timeline has some code in the BeforeSave event which prevents the user from using SaveAs, backs the file up to an alternate location, etc. When I click on save whilst in the time line the code runs perfectly. However when I initially set up the Timeline using code housed in the tracker the save fails - with no error.
The .save line in the Tracker triggers the Timeline's BeforeSave but when it goes over each line of code to save and create the backup, nothing happens. I've tried running it with DisplayAlerts and EnableEvents set to true - just to see if any error message shows - but nothing. Perplexed.
Tracker:
Timeline:
Any ideas why the BeforeSave code would run fine when triggered by the user (e.g. File > Save) but not when triggered from another Macro?
Any help appreciated - as always, TC.
Bookmarks