MattKnowles
New Member
I have opened a Word document and would like to find a string ("{ClientName}") within this document and replace it with another string. The macro code looks something like:
Selection.Find.ClearFormatting
With Selection.Find
.Text = "{ClientName}"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
However, I am struggling to convert this into Progress code. Any ideas please?
TIA,
Matt
Selection.Find.ClearFormatting
With Selection.Find
.Text = "{ClientName}"
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindContinue
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
However, I am struggling to convert this into Progress code. Any ideas please?
TIA,
Matt