![]() |
|
#6
|
||||
|
||||
|
Try something like:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Tbl As Table, FndList, RepList, i As Long
FndList = Array("Replace", "Do")
RepList = Array("Replaced", "Done")
With ActiveDocument
For Each Tbl In .Tables
With Tbl.Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.MatchWholeWord = True
.Replacement.Text = "^&"
.Wrap = wdFindStop
For i = 0 To UBound(FndList)
.Text = FndList(i)
.Replacement.Text = RepList(i)
.Execute Replace:=wdReplaceAll
Next
End With
Next
End With
Application.ScreenUpdating = True
End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| search on multiple word documents | Guy Roth | Word | 7 | 03-06-2017 01:31 PM |
Word: Search and fill from Excel
|
gbrucken | Word | 1 | 04-30-2012 10:40 AM |
Remove numbering from Word Doc
|
antaeusguy | Word | 1 | 03-14-2012 04:01 AM |
search option in word 2007
|
anano | Word | 1 | 01-11-2012 09:03 AM |
| Search Problems in MS Word | LoganB | Word | 0 | 09-03-2010 06:49 AM |