![]() |
#6
|
||||
|
||||
![]()
Try:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range .InsertBefore vbCr With .Find .ClearFormatting .Replacement.ClearFormatting .Format = False .Forward = True .Wrap = wdFindContinue .MatchWildcards = True .Text = "^13[0-1]>" .Replacement.Text = "^p" .Execute Replace:=wdReplaceAll .Text = "^13[\-]" .Execute Replace:=wdReplaceAll End With .Characters.First.Delete End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Copying specific columns of a table to WORD and deleting rows | ffinley | Word VBA | 5 | 12-07-2015 04:01 PM |
Deleting Range between Characters ! - % | Jonny | Word | 1 | 01-28-2015 04:35 PM |
![]() |
SteveWcg | Word | 5 | 01-08-2014 10:37 PM |
![]() |
youngdave55 | Word | 5 | 05-10-2012 12:12 AM |
Create Hyperlinks from Word to specific location in PDF | sukanyae | Word | 0 | 02-25-2010 04:08 PM |