How To close Visio file without saving in VBA?

G

Gary

I have open a Visio file and assigned it to DocObj. I have did some copies
and other things to make another visio file.

When I close, Visio ask me do I wish to save and I don't.

I used this VBA code and it doesn't stop the promp.

DocObj.Close
AppVisio.Quit
Set AppVisio = Nothing

How can I close the DocObj without saving (and not getting the prompt)???

Thank You,

Gary
 
P

Paul Herber

I have open a Visio file and assigned it to DocObj. I have did some copies
and other things to make another visio file.

When I close, Visio ask me do I wish to save and I don't.

I used this VBA code and it doesn't stop the promp.

DocObj.Close
AppVisio.Quit
Set AppVisio = Nothing

How can I close the DocObj without saving (and not getting the prompt)???

DocObj.Saved = True
then close etc
 

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