Hi
I suspect the answer is probably no to this one but I will ask the question anyway:
Is there a way of defining/declaring a variable that is specific to an instance of a document – i.e. it is created/defined when the document is created/opened and goes away when the document closes – it doesn’t matter if the document is saved or not.
The problem manifests itself as follows:I have template that displays a userform when a document is CREATED or OPENED (required by the powers that be). I have created macros AutoNew and AutoOpen to display the form. The problem arises when I open a document, hyperlink to another document, click left arrow/back button (to return to the original document), & lo & behold it runs the AutoOpen macro (which displays the form ). I only want to display the form once – the very first time a document is created/opened.
I can’t think of simple or even a hard way doing this at the moment.
Any help highly appreciated.
Thanks in advance.
Robie