Hi Macropod
Thanks for this - I've run the code but it has a compile error variable not defined message and the word .Replacement was highlighted - any ideas?
Thanks, Shelley
Quote:
Originally Posted by macropod
It seems to me that all you need is:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim i As Long
With ActiveDocument.Range.Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = ""
.Forward = True
.Format = True
.Wrap = wdFindContinue
For i = 1 To 4
.Style = "Heading " & i
.Replacement.Style = "Schedule Level " & i
.Execute Replace:=wdReplaceAll
Next
End With
Application.ScreenUpdating = True
End Sub
|