Execute FileSaveAs without Microsoft Project Prompt

A

Adriaan

hi

I use the FileSaveAs function to save a project file to a
SQL database. This is done through VB6 using the
Microsoft Project 2000 Object Library.

Is there a way to automatically overwrite an existing
file without Project requesting confirmation of the
overwrite? This is a background process and I need the
file to be automatically overwritten when calling the
FileSaveAs command - currently Project will launch and
ask confirmation when an existing file is found in the
database.

Regards
Adriaan
 
J

Jan De Messemaeker

By all means, that's how I do it
If not len(dir(fileaddress))=0 then Kill fileaddress
filesaveas fileaddress
--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 

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