View Single Post
 
Old 03-19-2013, 03:49 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

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
The above code only looks in tables in the body of the document. To add more Find/Replace expressions, simply edit the two arrays - FndList & RepList.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote