Hi everybody,
I wonder...:
Sub test45620()
Dim strResult As String
Dim lngResult As String
Dim l As Long
Dim oDlg As Dialog
Set oDlg = Dialogs(wdDialogEditReplace)
On Error Resume Next
oDlg.Display
strResult = Err.Description
For l = 1 To Len(strResult)
If IsNumeric(Mid(strResult, l, 1)) Then
lngResult = lngResult & Mid(strResult, l, 1)
End If
Next
MsgBox "number of replacements = " & lngResult
End Sub
Greetings from Bavaria, Germany
Helmut Weber, MVP, WordVBA
Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"