Hi All
I would like to search for & replace text sometimes in just a portion of a document. I have tried the following:
Code:
Set rngArea = Selection.Range
With rngArea.Find
.Forward = True
.Wrap = wdFindContinue
.Text = "This Text"
.Replacement.Text = "That Data"
.Execute Replace:=wdReplaceAll
End With
However this also finds/replaces text when it is outside of the specified range. I have also tried selecting the text in the range first and using the following:
Code:
Sub SR()
With Selection.Find
.Text = "This Text"
.Replacement.Text = "That Data"
.Forward = True
.Wrap = wdFindContinue
.Execute Replace:=wdReplaceAll
End With
End Sub
I am clearly totally misunderstanding the way this is supposed to work.
Please can you help me?
Archie