![]() |
#2
|
||||
|
||||
![]()
The following works fine for me for reformatting all of your number forms in one go:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Replacement.Font.Bold = True .Replacement.Highlight = True .Text = "^13[0-9]{1,}-[0-9]{1,}-[0-9]{1,}" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = True .MatchWildcards = True .Execute Replace:=wdReplaceAll End With End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
macros don't work, word 2007 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use wild card in VBA for Advance Filter? | LearnerExcel | Excel Programming | 1 | 10-09-2017 12:27 AM |
![]() |
sylvio | Word VBA | 2 | 09-04-2017 01:00 AM |
![]() |
catherineliang | Word | 1 | 07-21-2014 09:42 PM |
Wild card to highlight capitalised terms? | bertietheblue | Word | 2 | 02-08-2013 04:44 PM |
![]() |
RichardP | Word VBA | 6 | 04-26-2012 04:22 AM |