need help in vb.net with MS Project

J

Johnathan

I have 2 control buttons, 1 which is use to open a file and another 1 is use
to display the task details. Since the mpp file is still open in a invisible
mode, is it possible to get this file without open again in the second
button? If yes, how?
 
R

Rod Gill

Hi,

When opening the file you created an object MSProject.Application. Use this
to access the active project using MSProject.Application.ActiveProject. This
assumes that you haven't closed the file. If you have a variable name
projApp pointing to MSProject then the code will be:

projApp.Activeproject

--

Rod Gill
Project MVP

Project VBA Book, for details visit:
http://www.projectvbabook.com

NEW!! Web based VBA training course delivered by me. For details visit:
http://projectservertraining.com/learning/index.aspx
 

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