|
-
Nov 9th, 2000, 04:11 AM
#1
Thread Starter
New Member
I am a beginner at VB so please don't laugh too much. Can you please help me with the code to make the CANCEL button on the Print Dialog Box to work without printing the document. TIA
-
Nov 9th, 2000, 05:44 AM
#2
Set CancelError property on. When cancel is pressed, it causes an error. Like this:
[CODE]
Sub mnu_Click ()
'... Dims on such here
On Error Goto ErrorHandle
'... Code here
ErrorHandle:
MsgBox "Error #" & Err & vbCrLf & vbCrLf & "Description: " & Err.Description
End Sub
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
|