Hi,
I already (unsuccessfully) searched for a way to track filename events, in order to trigger a macro (i.e. when a already document is opened, and then, saved with a new name).
Is there a way to accomplish this?
Hi,
I already (unsuccessfully) searched for a way to track filename events, in order to trigger a macro (i.e. when a already document is opened, and then, saved with a new name).
Is there a way to accomplish this?
How would you like this "tracking" to function, outside the obvious if the current filename is changed to something new, trigger this macro... once triggered, what exactly is supposed to happen?
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
Hi JBeaucaire,
Initially, for testing purposes I just want to display the MsgBox.
Put all of this code into the ThisWorkbook module, save, close, reopen, save with new name...
Please Login or Register to view this content.
Thank you. I did as you said, but when saving (and renaming) the file, there's no action...
I need to create an Excel addin (xlam) in order to use it as a template. In this case, shall I put the code on a module (I'm really newbie on it)?
An Addin won't work. That is level of complexity greater than I can assist on.
Here's my sample workbook and it is showing the popup messages...
Thank you again.
For an add-in you need application-level events. At its simplest:
In the ThisWorkbook module of your add-in:
Please Login or Register to view this content.
Remember what the dormouse said
Feed your head
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks