Yes, that's right, only in the FileSave macro -- but I think I need to
amend my instruction.
For the AutoClose macro, you don't want to run the Save statement
explicitly if the mod-date wasn't changed. You just want the ordinary
closing action, which will display the "save changes?" message box if
the document has any unsaved changes, or will just close the document
if it's clean.
The amendment is this (again, I haven't tried to run your code): If
your AutoClose macro runs and the document stays open, you need to put
the statement
ActiveDocument.Close wdDoNotSaveChanges
just before the End Sub statement. (This one does not go in the
FileSave macro.)
--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
>Ler me make sure I understand what you said:
>
[quoted text clipped - 49 lines]
>> >
>> >Barb Reinhardt
Barb R. - 30 Mar 2005 15:23 GMT
I'm not sure I agree. There are often edits to the document for style only
and we want to know when a "real" change has been made to the substance of
the document as opposed to "style" and "format" changes.
> Yes, that's right, only in the FileSave macro -- but I think I need to
> amend my instruction.
[quoted text clipped - 70 lines]
> >> >
> >> >Barb Reinhardt