View Single Post
 
Old 08-15-2022, 05:16 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,962
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

The line '.Close SaveChanges:=True' only re-saves the document if any changes have actually been made. The problem lies in your code, which explicitly updates wDoc.BuiltInDocumentProperties(wdPropertyComments) without checking whether any changes have been made or whether it already matches strRplc.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote