Avoiding the "Do you want to save" message?

S

Shai

I have a Project file, linked to the my server's Enterprise Global by
a reference, so when the user open the Project app with connection to
the specific Project Server, this file, which contains several VBA
modules, also loads.
The problem is that when the user close Project , it display a "Do you
want to save changes" message for the linked file.
Is there a way to avoid that message for the specific file?
 
W

WD

If you want changes they made saved you would have to do the following:

projects.item(theirfilename).activate -- makes this the active file
application.filesave -- saves active file

if you don't want their changes saved make sure that their file is the
active file then do

application.fileclose pjdonotsaven -- closes the active file without saving

hope that helps

WD
 

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