activate application

M

Mayu

I'd like to activate the MS Project application (bring into focus), and
cannot find the required constant for it.
The following works,
Application.ActivateMicrosoftApp (pjMicrosoftWord)

but when I replaced it with parameter = pjMicrosoftProject, it didn't work,
should I be using another command?

I've also tried:
Application.ActiveProject.Visible = True
Application.Windows("myfile.mpp").Visible = True
Projects(1).Activate
 
M

Mayu

found one that works:

AppExecute Command:="C:\Program Files\Microsoft
Office\OFFICE11\WINPROJ.EXE"
 
M

Mayu

actually, is there any other way? as this method opens up a blank document
also, and I just like to programmatically open my mpp file (and also make it
focus).
 
M

Mayu

ActiveProject.Visible = Truepartially sort of works but I get a Run-time
error '438'Object doesn't support this property or method..."Mayu"
 

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