I'm working on a macro that parses a document and modifies style when needed. So far, one of my sub uses Find
& Execute
with a loop to go through all paragraph with a defined Style
. It worked well enough and made it easy to know how many times an modification is made.
However, it appears that .Execute Replace:=wdReplaceAll
is far more efficient, but doesn't return this latter information in VBA, even though it is displayed when used directly in Word (with Ctrl + H).
How can I bypass this issue to count the number of replacements?
Thanks a lot in advance.