I am running code on opening of a document to check footer info, and prompt user to update if "incorrect". The last two lines of the Sub are:
ActiveDocument.Saved = False
jjj = MsgBox(ActiveDocument.Name, , ActiveDocument.Saved)
End If
End Sub
The MsgBox shows the name of the doc I opened (Jambalaya.doc) and shows FALSE, as I would expect.
But after clicking OK on the MsgBox, if I go to my Immediate window and type in ?ActiveDocument.Saved, it returns TRUE.
And, when I close the doc, it does not prompt to be saved. Is there some other way I should be setting the doc to 'dirty'?
Thank you,
KePaHa