+ Reply to Thread
Results 1 to 5 of 5

How do you add a 'print screen' button to a form?

  1. #1
    Registered User
    Join Date
    06-07-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    How do you add a 'print screen' button to a form?

    Hi,
    As per the heading, im wondering how to add a command button to a form which prints the form when clicked?

    Cheers,

    Familylink

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: How do you add a 'print screen' button to a form?

    VBA has a PrintForm method; I've not used it, but have heard that it prints at screen resolution, not printer resolution.

    An alternative would be to copy the data to a sheet and print that.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    06-07-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: How do you add a 'print screen' button to a form?

    I have tried these code examples:


    Please Login or Register  to view this content.
    But both of them just print a blank page. A print screen command would probably work but im not sure how to do that.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: How do you add a 'print screen' button to a form?

    A userform is not really designed to print, I always use a sheet set up as a print option which is displaying the details in the form, which is what shg is recommending.

    Leith Ross has posted code to print a UserForm though
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    06-07-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: How do you add a 'print screen' button to a form?

    Alrighty,
    I have it printing using:

    Please Login or Register  to view this content.
    Just working on making it print in landscape, I will post the code when I figure it out. Unless anyone else knows how?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1