Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2003
    Location
    Ohio
    Posts
    50

    Unanswered: Give user option to print MsgBox

    Hello all. I would like to have my users be able to print a message box when and if they get it. What i would like is when the user gets an error for them to be able to press a button in the msgbox and to have the msgbox message print to there default printer.

    I hope this makes sense to everytone.

    MsgBox "An error has occurred." & _
    vbCrlf & "Please make note of the following details:" & _
    vbCrlf & "Error Number: " & Err.Number & _
    vbCrlf & "Description: " & Err.Description _
    , vbCritical, "ERROR"


    What do i need to change to make this possible?

    Thanks

  2. #2
    Join Date
    Jan 2004
    Location
    The Netherlands
    Posts
    421
    Why not use a "simple" printscreen?

    Greetz

  3. #3
    Join Date
    Oct 2003
    Location
    Ohio
    Posts
    50
    I would prefer to just print the msgbox but a printscreen will work.

    How would i do the printscreen?

    Thanks

  4. #4
    Join Date
    Aug 2004
    Location
    Cary, NC
    Posts
    264
    It is a little more work but you could create a form that displays the message instead of using a message box. You could then provide a button on the form that would print the current form or you could create a report with unbound text boxes that fill in with the values in your message form and then print that report from your message form.

    Steve

  5. #5
    Join Date
    Jun 2004
    Location
    Florida, US
    Posts
    521
    also not too functional but if you press Ctrl-C on the message box, you can copy messagebox content to clipboard and paste into a notepad. then print.
    ghozy.

  6. #6
    Join Date
    Oct 2003
    Location
    Ohio
    Posts
    50
    Thanks for all of the help but I ended up just creating a generic error form with a print button.

    Thanks Again

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •