Can I turn off Warning messages with Automation?

D

Debbie

I am trying to automatically save a project (through VBA)
and I want to turn off the warning message about a file
already existing with that name, do you want to
overwrite? I will always want to overwrite at this point.

I am running MSProject 2002 Professional without Project
Server.

Thanks,
Debbie
 
D

Dale Howard

Debbie --

Have you tried the following line at the beginning of your macro code:

Application.DisplayAlerts = False

At the end of your macro, you will need to include the following line:

Application.DisplayAlerts = True

Also, you really should post messages about Project VBA in the
Microsoft.Public.Project.VBA newsgroup, as you will be more likely to get
regular answers there. Hope this helps.
 

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