+ Reply to Thread
Results 1 to 7 of 7

Printing Multipage Excel Userform

  1. #1
    Registered User
    Join Date
    11-29-2019
    Location
    NC, USA
    MS-Off Ver
    Office 365
    Posts
    14

    Printing Multipage Excel Userform

    I have a userform that is used as an inspection report that contains 6 pages. I am not sure how to code directions to print each page individually. The user should be able to save the report as a PDF (to email to the department manager) or print out while at the location. Therefore, the user should be able to choose the printer.

    I am able to use .PrintPreview such that the document can be formatted and printer can be chosen, but am not sure how to code such that the header information and each individual page can be printed.

    I've attached a sample userform (Book1.xlxm) such that you can see what I am doing and then let me know how to correct. I greatly appreciate your assistance.

    Stuart
    Attached Files Attached Files

  2. #2
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Printing Multipage Excel Userform

    This doesn't work for a userform.
    The object does not show, maybe if ShowModal were False but then again I don't think this will give you the result.
    Why do you want to print the Userform, why don't you create a worksheet that shows the results a for based upon what you fill or select in your Userform.
    You mention 6 pages, the Usefrom only has three extra page tabs
    I think you should be a little more explicit with your explanation. maybe show a sample of what you hope to achieve?
    ---
    Hans
    "IT" Always crosses your path!
    May the (vba) code be with you... if it isn't; start debugging!
    If you like my answer, Click the * below to say thank-you

  3. #3
    Registered User
    Join Date
    11-29-2019
    Location
    NC, USA
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Printing Multipage Excel Userform

    Let me clarify. I've attached the actual form and it now has four pages. It is better to print a PDF of the form or provide an actual printout of the form and provide that to the department manager. My goal is to do a Print Preview so the user can choose the printer and format the page. Each page should print individually and include the header information (Reviewer, Review Date and Site Name) with each page. I have tried and the form overlays the report. Assistance is appreciated.
    Attached Files Attached Files

  4. #4
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Printing Multipage Excel Userform

    Good start

    Please Login or Register  to view this content.
    Doesn't Exist

  5. #5
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Printing Multipage Excel Userform

    Selecting a printer is default Windows Functionality

    The first code returns the printer name to display in a form or on a button

    The second macro actually lets you select a printer amongst the available printers on the user's system

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    11-29-2019
    Location
    NC, USA
    MS-Off Ver
    Office 365
    Posts
    14

    Re: Printing Multipage Excel Userform

    This is great and thank you very much!

    Stuart

  7. #7
    Forum Expert Keebellah's Avatar
    Join Date
    01-12-2014
    Location
    The Netherlands
    MS-Off Ver
    Office 2021 (Windows)
    Posts
    7,905

    Re: Printing Multipage Excel Userform

    Good to hear, I've got an idea about printing the userform but am working it out.
    Me.PrintForm does it if you add a button and make it do that but then you need to make it fit the page

+ 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. VBA Multipage Userform.: transfer textbox fields from a multipage userform to a cell
    By TheGiantJudge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-31-2019, 01:26 PM
  2. [SOLVED] Excel userform textboxes not updating, after change in MultiPage tab
    By Un-Do Re-Do in forum Excel Programming / VBA / Macros
    Replies: 46
    Last Post: 07-16-2018, 03:24 AM
  3. [SOLVED] vba excel - Parental control multipage userform runtime error 438
    By terriertrip in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 10-11-2017, 02:45 PM
  4. Embedding a Word doc into an Excel UserForm MultiPage
    By RzzB in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-12-2015, 03:16 PM
  5. Best Placement of Checkbox on Multipage Userform - Excel VBA
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-09-2013, 03:36 PM
  6. [SOLVED] multipage userform in excel 2003
    By AliiShariff in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 07-04-2012, 06:44 PM
  7. Multipage Printing problems
    By bitter in forum Excel General
    Replies: 0
    Last Post: 09-08-2006, 07:03 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