Ö
Örjan Skoglösa
I´m showing the built-in Find&Replace dialog and manually executing a
replacement.
Upon closing the dialog I get a "running error" 5452 or 5524 with the
text that normally is shown after execution ("Word has made #
replacements".)
How can I avoid this error?
The code I use:
Selection.Find.Replacement.Font.Bold = False
With Dialogs(wdDialogEditReplace)
.Find = "SW-T:"
.Replace = "^&"
.Direction = True
.FindNext = wdFindAsk
.Format = True
.MatchCase = False
.WholeWord = False
.PatternMatch = False
.SoundsLike = False
.FindAllWordForms = False
.Show
End With
TIA
Örjan Skoglösa
replacement.
Upon closing the dialog I get a "running error" 5452 or 5524 with the
text that normally is shown after execution ("Word has made #
replacements".)
How can I avoid this error?
The code I use:
Selection.Find.Replacement.Font.Bold = False
With Dialogs(wdDialogEditReplace)
.Find = "SW-T:"
.Replace = "^&"
.Direction = True
.FindNext = wdFindAsk
.Format = True
.MatchCase = False
.WholeWord = False
.PatternMatch = False
.SoundsLike = False
.FindAllWordForms = False
.Show
End With
TIA
Örjan Skoglösa