Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
other
informationbridge
office.intranets
office.misc
office.setup
office.xml
officeupdate
onenote
photodraw.discussion
powerpoint
producer
proj.standard&server
project
project.developer
project.pro_and_serve
project.server
project.vba
project2000
publisher
publisher.prepress
publisher.programming
publisher.webdesign
visio
visio.createshapes
visio.database.modeling
visio.dev.diagrams
visio.dev.shapesheet
visio.dev.vba
visio.dev.vc
visio.developer
visio.general
visio.installation
visio.printing
visio.software.modeling
visio.troubleshoot
  
 
date: Fri, 3 Oct 2008 16:55:10 +0930,    group: microsoft.public.project.developer        back       


Macro Location   
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
date: Fri, 3 Oct 2008 16:55:10 +0930   author:   Gilgamesh

Re: Macro Location   
Hi,

ThisProject.fullname
HTH

-- 
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
"Gilgamesh"  wrote in message 
news:e9kgWlSJJHA.1160@TK2MSFTNGP05.phx.gbl...
> 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
>
date: Fri, 3 Oct 2008 14:29:13 +0200   author:   Jan De Messemaeker

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us