Results 1 to 2 of 2

Thread: Print Form???

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    263

    Question

    Hi. I have a user form in Excel. What is the code to print the form in VBA???


    Thanks
    Thanks Alot,

    David Gottlieb
    CIW Certified Internet Webmaster
    Web Developer/Designer

  2. #2
    Junior Member
    Join Date
    Sep 2000
    Location
    Poland
    Posts
    26
    Hi,
    try to use PrintForm method:
    Code:
    YourFormName.PrintForm
    Here's it's description from MSDN:
    Sends a bit-by-bit image of a Form object to the printer.

    Syntax

    object.PrintForm

    The object placeholder represents an object expression that evaluates to an object in the Applies To list. If object is omitted, the Form with the focus is assumed to be object.

    Remarks

    PrintForm prints all visible objects and bitmaps of the Form object. PrintForm also prints graphics added to a Form object or PictureBox control at run time if the AutoRedraw property is True when the graphics are drawn.

    The printer used by PrintForm is determined by the operating system's Control Panel settings.

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