Close Publisher Document Without Save changes

C

Caramujus

I have a publisher document with an empty picture frame that it will be use
to import pictures from a Digital Camera, but I don't want the final user to
save that, so i want to know how i can using vba do that.
When you close the document any changes will not be save an no prompt board
will appear.
I tried the code below without sucess:
Sub CloseWithoutSaving()
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub

Thanks for the support
 
E

Ed Bennett

Caramujus said:
I have a publisher document with an empty picture frame that it will be use
to import pictures from a Digital Camera, but I don't want the final user to
save that, so i want to know how i can using vba do that.
When you close the document any changes will not be save an no prompt board
will appear.
I tried the code below without sucess:
Sub CloseWithoutSaving()
ActiveDocument.Close SaveChanges:=wdDoNotSaveChanges
End Sub

As an initial suggestion, try replacing "wd" with "pb".
 

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