V
VBA Coder
I have an AutoNew subroutine that is declared as Public, so that when a user
creates a new document from our template, this code will be the first thing
to run. How can I have this subroutine hidden from the list of available
Macros that the user can run? If the user clicks Alt-F8, they are presented
with a list of Macros, including my "AutoNew" macro. If I change it to a
Function, it will not show, however, by changing it to a Function will
prevent it from running when the user creates a new document.
creates a new document from our template, this code will be the first thing
to run. How can I have this subroutine hidden from the list of available
Macros that the user can run? If the user clicks Alt-F8, they are presented
with a list of Macros, including my "AutoNew" macro. If I change it to a
Function, it will not show, however, by changing it to a Function will
prevent it from running when the user creates a new document.