Often times I open a document (has lots of field codes) and all I do is print it and then close it. However, every time after I print it, I always get a prompt, "do you want to save the document" upon a close event even though the only thing I did was print it. Kind of annoying.
Does anyone see problems with re-purposing the FilePrint command to get around the problem?
[vba]Sub FilePrint()
oldSaved = ActiveDocument.Saved
Dialogs(wdDialogFilePrint).Show
ActiveDocument.Saved = oldSaved
End Sub[/vba]
BTW: I am good on the field codes always being updated as they are already handled by a separate "AutoOpen" macro that updates all my fields in StoryRanges upon an open event.
However, are there other things I am not thinking about that could cause a problem for me?
Thanks,
-B