G
Gregg
Howard said:If all you want to do is remove code in the ActiveVBProject, them all you
need to know is the ActiveVBProject.
You can get the filename fron the ActiveVBProject.
Debug.Print Application.VBE.ActiveVBProject.FileName
More accurately, I want to just capture the file name of the
ActiveVBProject for reference, and then do who knows what with it later
in the code.
I do see that your code string finds the file name running the macro no
matter what other file is active. That's pretty close to what I want.
But how do I reference it in code now? For example, after that line,
how do I make it appear in a msgbox or reference it as the file I want
to activate, or whatever?
Sorry for my ignorance, I've known of it but never used Debug.
Thanks,
Gregg