R
Ren? Probst
Hi:
WD2002
When I use a code like the following and the user enters an "a" for
the field "copies" the Dialog is redisplayed...
.... well done!.
After the dialog is redisplayed the user is correcting his error by
entering a "3" and clicks "Ok"...
.... *sniff my code stacks now on the display-Method and a run time
error is indicated.
I have tested a lot of work arounds (on error resume next, etc.) but I
am not successful in controlling this process flow properly.
PS: If I use an error routine, then the feedback of the display-Method
is neither -1 nor 0, but *empty*.
Your help is highly appreciated.
Kind regards
René Probst
Sub Test()
With Dialogs(wdDialogFilePrint)
If .Display = -1 Then
If .NumCopies > 1 Then
MsgBox "You cannot print more than 1 copy."
Else
.Execute
End If
End If
End With
End Sub
WD2002
When I use a code like the following and the user enters an "a" for
the field "copies" the Dialog is redisplayed...
.... well done!.
After the dialog is redisplayed the user is correcting his error by
entering a "3" and clicks "Ok"...
.... *sniff my code stacks now on the display-Method and a run time
error is indicated.
I have tested a lot of work arounds (on error resume next, etc.) but I
am not successful in controlling this process flow properly.
PS: If I use an error routine, then the feedback of the display-Method
is neither -1 nor 0, but *empty*.
Your help is highly appreciated.
Kind regards
René Probst
Sub Test()
With Dialogs(wdDialogFilePrint)
If .Display = -1 Then
If .NumCopies > 1 Then
MsgBox "You cannot print more than 1 copy."
Else
.Execute
End If
End If
End With
End Sub