#1
|
|||
|
|||
Return number of changes a "Replace-All" makes, without using a loop?
When i use Find-and-Replace to do a "Replace-All", Word tells me how many changes were made. Can i access that number or get it returned when doing a VBA Replace-All, instead of using "Replace-One", a loop, and a counter? Thanks for your help. Last edited by John 4; 12-05-2020 at 06:10 AM. |
#2
|
|||
|
|||
I think this link answers your question:
How to find out, using VBA, how many replacements Word made during a Find & Replace All |
#3
|
|||
|
|||
Thanks VB, surprisingly complex for such a seemingly simple task, but at least my question's answered.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to merge empty cells before "ok" with a for loop | Iput | Word VBA | 5 | 09-08-2019 06:10 PM |
Don't want if statement to return "false" | mbesspiata | Excel | 2 | 06-06-2016 02:29 PM |
Replace "comma" with "and" in line of text | audioman | Word VBA | 7 | 01-21-2016 03:11 PM |
Spreadsheet with "CR" & "DB" in amount & number columns. | bfisher | Excel | 4 | 09-28-2015 07:03 AM |
Mailing: how to make the "page number" in Word is the same as "row number" in excel w | Jamal NUMAN | Word | 1 | 09-03-2011 11:37 AM |