A family of Microsoft word processing software products for creating web, email, and print documents.
The Replace expresspion in Find/Replace is limited to 255 characters. For longer strings, you can either put strReplace into the clipboard and use ^c as the Replace expression, or use code like:
Public Function S_And_R(ByVal rngStory As Word.Range, ByVal strSearch As String, ByVal strReplace As String) As Boolean
With rngStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = strSearch
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Execute
End With
S_And_R = .Find.Found
Do While .Find.Found = True
.Text = strReplace
.Collapse wdCollapseEnd
.Find.Execute
Loop
End With
End Function