![]() |
|
|||||||
|
|
|
Thread Tools | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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] |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Loop Through all documents in a folder
|
ballpoint | Word VBA | 10 | 08-15-2022 05:24 PM |
Macro to Change Document Font in All Documents in a Folder
|
jtomolonis08 | Word VBA | 1 | 06-07-2019 05:59 PM |
Can't Find Word Document in Search or in Folder But It's There in Recent Documents
|
CrossReach | Word | 1 | 10-14-2016 01:27 PM |
Find & replace footer text in a folder of Word 2010 documents
|
kennethc | Word | 3 | 03-28-2015 02:49 AM |
| how to search and replace BOLD text >> font color change? | dylansmith | Word | 4 | 03-12-2013 09:51 PM |