Macro Location

G

Gilgamesh

Hello,
I have a VBA macro and when it runs I would like to find out the file name
that the macro resides in.
I can't use ActiveProject as the file may not be the active one at the time.
I can hardcode a name in there but as my versions increase I may forget to
update the version number in the code.

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top