Results 1 to 2 of 2

Thread: Print code

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2000
    Posts
    1
    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

  2. #2
    Guest
    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
  •  



Click Here to Expand Forum to Full Width