![]() |
|
|
|
#1
|
||||
|
||||
|
At least some of the issues you're having, especially with numbers, are because the code uses ".MatchWholeWord = True". Without this, there would be a significant risk that some of your other Find/Replace expressions would be updating parts of words. That may also explain why it doesn't work with "No-width optional break" text. I don't understand why you'd bother with rows 5-11, since the Find & Replace text is the same for each of them. For the remainder, you might use a separate worksheet and run a separate Find/Replace without the ".MatchWholeWord = True".
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
#2
|
|||
|
|||
|
Thank you Paul.
Ok. The items within the lines 5 and 11 are not the same. Line 5 is to remove the white space at the end of a paragraph, and line 11 is to remove the white space between the opening parenthesis and the blank space before the closing parenthesis. Another question: I often have to do Find & Replace only within the file that is opend, I would like to know how I could modify the code without saving the file and then go on to do Find & Replace? Thanks |
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Replace text in multiple documents?
|
Roscoe | Word VBA | 7 | 07-31-2017 04:02 PM |
| Find and replace No longer work | TJH | Word | 3 | 03-25-2014 11:33 PM |
Synchronising Outlook 2013 on multiple PCs
|
paddit | Outlook | 1 | 11-06-2013 02:39 PM |
WORD 2013 - Multiple Reviewers: they are all me.
|
dalyght | Word | 8 | 05-29-2013 12:19 PM |
Highlight and then replace multiple words
|
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |