Clearing Changes

P

PaulV

When I open my template file with it's default stencils I
close the shape search window. This apparently sets
the "changes" flag or count on the document so if the user
immediately exits the "Save Changes" prompt is displayed
even though the user has done nothing. Is there a VBA way
to clear the change flag/count so I can achieve a clean
exit if nothing is done?
 
C

Chris Roth

Paul,

Try:

Visio.ActiveDocument.Saved = true

This tricks Visio into thinking that the document is not dirty, it has been
saved, etc. So you shouldn't get the Save? dialog.


--

Hope this helps,

Chris Roth
Visio MVP
visioguy @ extremely warm mail.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