L
Let2Editor
I am writing a search and replace routine as follows:
With Selection.Find
.Text = sText
.Replacement.Text = rText
.Forward = True
.Wrap = wdFindContinue
isdone = .Execute(Replace:=wdReplaceAll)
End With
If the rtext variable is > 255 characters, I get an error that says string
parameter too long. I frequently have replacement text that exceed 255
characters and this is a real pain. Any good work arounds? This is not
documented anywhere that I can find on the MS site. Thanks.
Ed
With Selection.Find
.Text = sText
.Replacement.Text = rText
.Forward = True
.Wrap = wdFindContinue
isdone = .Execute(Replace:=wdReplaceAll)
End With
If the rtext variable is > 255 characters, I get an error that says string
parameter too long. I frequently have replacement text that exceed 255
characters and this is a real pain. Any good work arounds? This is not
documented anywhere that I can find on the MS site. Thanks.
Ed