+ Reply to Thread
Results 1 to 7 of 7

Print Form

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Print Form

    Hello,
    I would like to add a Command Button to a form so that I can print the form. Is there an easy code to make this happen?

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Print Form

    Yes. I have not tested this specific code since I don't have your file.

    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Print Form

    Awesome. Thank you. I will give it a try.

  4. #4
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Print Form

    That worked perfectly. Any idea how to center the form on the printed page? This doesn't generate a Preview screen.

    Thanks a ton!

  5. #5
    Registered User
    Join Date
    02-14-2013
    Location
    wales
    MS-Off Ver
    Excel 2010
    Posts
    64

    Re: Print Form

    Attached is a workbook where there are 3 options on buttons on sheet 1
    Print All - Prints entire workbook
    Print Page - Prints current worksheet
    Print selection - Menu to choose the sheets you want to print

    I hope this helps and works really well for me in numerous projects

    Mark
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Print Form

    You're a rockstar. Thanks!

  7. #7
    Forum Contributor
    Join Date
    11-13-2013
    Location
    Florida
    MS-Off Ver
    Excel 2010
    Posts
    464

    Re: Print Form

    Is there a Macro that can be assigned to a button for Print Preview? The form prints using the above listed code, but its not centered.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 02-28-2013, 08:17 AM
  2. Print preview from user form opened from a user form
    By Brunstgnegg in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2011, 05:12 AM
  3. Print a VBA form
    By umayank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-14-2008, 08:33 AM
  4. [SOLVED] Print Form
    By Jason Zischke in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-15-2005, 08:35 AM
  5. [SOLVED] Print a form
    By Kris in forum Excel General
    Replies: 5
    Last Post: 03-23-2005, 11:06 AM

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