|
-
Jul 30th, 2000, 05:17 PM
#1
Thread Starter
Hyperactive Member
How can I tell if they press "Cancel"?
-
Jul 30th, 2000, 05:41 PM
#2
Set the CancelError property to true. Add Error handeling code and test if Err = cdlCancel.
Code:
On Error Resume Next
With CommonDialog1
.CancelError = True
.ShowOpen
If Err = cdlCancel Then
Exit Sub 'the user pressed Cancel so bail out
End If
'the user pressed OK
End With
Good luck!
-
Jul 30th, 2000, 05:44 PM
#3
Frenzied Member
set the CalcelEror poperty to true, then an error will raised if cancel is selected, set up an error trap to catch it.
Damn, i was beaten to it.
-
Jul 30th, 2000, 05:45 PM
#4
Thread Starter
Hyperactive Member
Wow, I've been here for a while and I've never seen you before Joacim.
Over 700 posts...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|