Roopher
Board Regular
- Joined
- Jul 8, 2008
- Messages
- 73
Hello all!
I have an issue with a command bar whose buttons shall work only when a certain workbook is active; this also when it has changed name due to an 'Save as...' operation. For that to work, a global variable needs to be updated every time when the workbook changes name.
The problem arises when the user saves the workbook under a new filename, which he is intended to be allowed (Save as...). With the BeforeSave event however I cannot catch the *new* filename into my comparison variable, but only the old one. I would need an event like 'AfterSave'.
Anyone with any idea on how to work this?
I have an issue with a command bar whose buttons shall work only when a certain workbook is active; this also when it has changed name due to an 'Save as...' operation. For that to work, a global variable needs to be updated every time when the workbook changes name.
The problem arises when the user saves the workbook under a new filename, which he is intended to be allowed (Save as...). With the BeforeSave event however I cannot catch the *new* filename into my comparison variable, but only the old one. I would need an event like 'AfterSave'.
Anyone with any idea on how to work this?