![]() |
|
#1
|
|||
|
|||
![]()
Here is some code that I use to help me:
Sub ListChange() Dim r As Range Dim MyList() As String Dim i As Long MyList = Split("dot,com,like", ",") For i = 0 To UBound(MyList()) Set r = ActiveDocument.Range With r.Find .Text = MyList(i) .Replacement.Highlight = wdYellow .Execute Replace:=wdReplaceAll End With Next End Sub |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
AtaLoss | Word VBA | 37 | 09-22-2021 12:04 PM |
![]() |
bakerkr | Word VBA | 4 | 10-19-2017 02:23 PM |
![]() |
seortm | Word | 3 | 03-30-2015 08:12 AM |
![]() |
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
![]() |
RBLampert | Word VBA | 13 | 10-23-2012 04:45 PM |