Running Auto_Open,

J

Jo?o Fialho

Hi,

I'm work in a application, which i launch Ms Project by
"CreateProcessA" from a Windows API.

I want to run the Auto_Open macro, just when de Project is launched by
my application. If the Ms Project file will be open, by that i would
call the normal away "An user that opens the file", i won't run
Auto_Open macro!

Is there a way to do this?

Tks
JHF
 
R

Rod Gill

Use Project's Application.Run method to run any macro you like. Don't use
Auto_open, then the macro won't run when opened manually.

--
For VBA posts, please use the public.project.developer group.
For any version of Project use public.project
For any version of Project Server use public. project.server

Rod Gill
Project MVP
For Microsoft Project companion projects, best practices and Project VBA
development services
visit www.projectlearning.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