![]() |
#15
|
||||
|
||||
![]()
In that case, you could use:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Forward = True .Wrap = wdFindContinue .Text = "^g^g^g" .Replacement.Text = "^&^l^l" .Execute Replace:=wdReplaceAll .Text = "^g" .Replacement.Text = "^&^t" .Execute Replace:=wdReplaceAll .Text = "^t^l" .Replacement.Text = "^l" .Execute Replace:=wdReplaceAll End With End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
sahrens1 | Word VBA | 1 | 07-02-2017 07:16 AM |
![]() |
Bree | Word | 1 | 06-24-2016 10:32 PM |
![]() |
nando88 | Word VBA | 6 | 05-09-2016 11:56 PM |
![]() |
skatiemcb | Word Tables | 2 | 01-24-2015 08:18 AM |
![]() |
mescaL | Word VBA | 3 | 11-03-2014 10:51 PM |