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
Caramujus wrote: > 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". -- Ed Bennett - MVP Microsoft Publisher http://ed.mvps.org