![]() |
#12
|
|||
|
|||
![]()
You can have as many range variables as you want.
Dim oRng as Range Dim oChar as Range Dim oWord as Range Dim oOpenRange As Range If your insert this code in another macro then it should run the same as it did on its own: Code:
Dim oRng As Range Set oRng = ActiveDocument.Range With oRng.Find .Text = "([a-z])(/)([a-z])" .MatchWildcards = True .Replacement.Text = "\1 \2 \3" .Execute Replace:=wdReplaceAll End With |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
possible to repeat text with numbered list? | Burt | Word | 5 | 07-14-2019 04:02 PM |
outlook search tool locked with key word, it will not allow deleting or editing | roni | Outlook | 0 | 07-12-2017 07:31 AM |
![]() |
dgame27 | Word | 1 | 07-06-2016 09:14 PM |
Automatically Repeat Text in Footer | Luxanais | Word | 2 | 09-24-2015 10:10 AM |
![]() |
ypurcaro | Word | 1 | 02-07-2013 01:46 AM |