E
electric
I have a non-modal form over my documents for convenience tools while I am
working with it. Essentially a constantly-running macro until the form is
closed. It is set to automatically run upon opening the file.
The macro/form is based off a template file so that if I send the document
to someone else, they won't get the macros, since they don't need it.
The problem I am coming across is that if I have documentA loaded, with the
macro running, and open up documentB for reference.
Instead of running a separate process of the macro, it takes over the macro
running with documentA and alters the form to the format of documentB (the
form is setup to recognize bookmarks in the document so it displays the
content of the document correctly).
What I am wondering, is if it is possible to either A) determine that the
macro is already running on another document and not allow it to AutoOpen, or
B) run the same macro from the same template in a separate instance (most
convenient option)?
Thanks for any input!
working with it. Essentially a constantly-running macro until the form is
closed. It is set to automatically run upon opening the file.
The macro/form is based off a template file so that if I send the document
to someone else, they won't get the macros, since they don't need it.
The problem I am coming across is that if I have documentA loaded, with the
macro running, and open up documentB for reference.
Instead of running a separate process of the macro, it takes over the macro
running with documentA and alters the form to the format of documentB (the
form is setup to recognize bookmarks in the document so it displays the
content of the document correctly).
What I am wondering, is if it is possible to either A) determine that the
macro is already running on another document and not allow it to AutoOpen, or
B) run the same macro from the same template in a separate instance (most
convenient option)?
Thanks for any input!