![]() |
|
#1
|
|||
|
|||
|
Hello!
I'm having trouble with Find and Replace VBA macros: Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "%" .Replacement.Text = " PERCENT" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = True .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAl ' Selection.Find.ClearFormatting Selection.Find.Replacement.ClearFormatting With Selection.Find .Text = "/" .Replacement.Text = " " .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = True .MatchWildcards = False .MatchSoundsLike = False .MatchAllWordForms = False End With Selection.Find.Execute Replace:=wdReplaceAl It will find the charaters but will not replace them. Please help! |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Find/Replace text longer than 255 characters
|
alex100 | Word VBA | 5 | 07-08-2020 04:14 AM |
Combining Characters in Find & Replace
|
Surge | Word | 6 | 03-10-2020 12:42 AM |
multiple find and replace in vba for special words
|
kvnrao | Word VBA | 7 | 11-02-2018 06:28 PM |
Search and Replace special characters between word using wildcards
|
mauuuuu5 | Word | 1 | 08-23-2015 09:20 PM |
Find and Replace some characters with Bullets
|
kjxavier | Word | 1 | 01-02-2015 12:15 AM |