Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Common Dialog box

Status
Not open for further replies.

wellerp

Instructor
Joined
Mar 1, 2001
Messages
3
Location
US
The Common Dialog box is easy to use.
Especially CommonDialog1.ShowPrinter
BUT how to I check to see if the user clicked "Cancel"?
 

You can find this in the General discussion-Forum :

cdlg.CancelError = True
On Error Resume Next
cdlg.ShowPrinter
If Err.Number = 32755 Then MsgBox ("Cancel")

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top