Open Enterprise Project from VB.Net

S

Scott Sanders USA

Hi All,
I'm using VB.Net and have connected to Project using Microsoft.Office.Interop.
I can't figure out how to open an Enterprise Project?
This is what i have so far;

Dim pApp As Microsoft.Office.Interop.MSProject.Application
pApp = CreateObject("msproject.application")
pApp.Visible = True
pApp.FileOpen("MasterProject")
 
R

Rod Gill

Hi,

Record a macro in Project Professional of what you want to do then copy and
paste the recorded code into VB. You will need to add the pApp qualifier but
otherwise the code will work pretty much as copied. This is an advantage of
using VB instead of C# !!

--

Rod Gill
Project MVP

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

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