The macro I run opens a Word doc and after going through a routine, it prints the doc. Then I want to close the doc (not Word, just that doc) without saving the changes. The VBA code is:
Documents.Close SaveChanges:=wdDoNotSaveChanges
With minor differences mine would read:
objDoc.Close SaveChanges:=wdDoNotSaveChanges
However Extra considers everything after Close a new variable. I know that objDoc.Close works but it leaves the box to save the doc up. Any ideas how I can get Extra to recognize the command not to save changes?
Documents.Close SaveChanges:=wdDoNotSaveChanges
With minor differences mine would read:
objDoc.Close SaveChanges:=wdDoNotSaveChanges
However Extra considers everything after Close a new variable. I know that objDoc.Close works but it leaves the box to save the doc up. Any ideas how I can get Extra to recognize the command not to save changes?