R
red6000
Hi, I want to run some code that closes all open documents and (if the doc
hasn't been saved) it prompts the user to save the changes. I have the
following:
Dim aDoc as Document
For Each aDoc In Documents
aDoc.Close SaveChanges:=wdPromptToSaveChanges
Next
However the code always saves the changes and I dont get prompted.
Any ideas?
Thanks.
hasn't been saved) it prompts the user to save the changes. I have the
following:
Dim aDoc as Document
For Each aDoc In Documents
aDoc.Close SaveChanges:=wdPromptToSaveChanges
Next
However the code always saves the changes and I dont get prompted.
Any ideas?
Thanks.