How to check current active project using vb.net 2005?

J

Johnathan

Hi, currently I'm using COM object to open a project using vb.net. The
project file is open in an invisible mode but if i open another project file
it appears that both project files become visible. How can I check for the
current active project and if there is a project file opened, close the
current project file and open a new project file?
 
J

Jan De Messemaeker

Hello,

I don't know VB.Net, but if this may be of help, this is how you can do it
in VBA:

For each Prj in application.projects
fileclose pjdonotsave
next
fileopen...

HTH

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
+32 495 300 620
For availability check:
http://users.online.be/prom-ade/Calendar.pdf
 

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