+ Reply to Thread
Results 1 to 3 of 3

Macro for Multiple Print Options

  1. #1
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Macro for Multiple Print Options

    I am looking to design a Userform with either "OptionButtons" or a ComboBox in which the user selects 1 of 4 print formats. The following are the 4 Print Formats:

    Print1:
    .2 Margins (Top/Bottom/Sides)
    Fit all Columns To Page
    Rows 1-17 are Normal
    From row18 on every row with text in columnA becomes a print break with row16 as a header before it. (the point of this is that row16 is a header but since it will always on the first page and row17 is a text row that would kick it on the next page)

    Print2:
    .2 Margins (Top/Bottom/Sides)
    Fit all Columns To Page
    Cells A1:F15 select fit to page and center (This will be the 1st page)
    Row16 becomes header for the rest of the sheets. Then each row with text in columnA becomes a print break

    Print3:
    .2 Margins (Top/Bottom/Sides)
    Fit all Columns To Page
    Cells A1:F15 select fit to page and center (This will be the 1st page)
    Row16 becomes header for the rest of the sheets. Then each row with text in columnA becomes a print break. Hide ColumnE and ColumnF after row15.

    Print4:
    .2 Margins (Top/Bottom/Sides)
    Fit all Columns To Page
    Cells A1:F15 select fit to page and center (This will be the 1st page)
    Row16 becomes header for the rest of the sheets. Then each row with text in columnA becomes a print break. Hide Column A, B, E, F after row15.

  2. #2
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro for Multiple Print Options

    Just create a button.

    then right click on it to assign a macro.
    name it
    record....

    then go into print settings and set up the PRINT1 settings and press print.

    go to "view" tab and macro and stop macro.

    then when they click on that button it will print a doc to the settings u chose..

    repeat for next print button with different settings.

  3. #3
    Forum Contributor
    Join Date
    04-23-2012
    Location
    Bradford PA
    MS-Off Ver
    Excel 2010
    Posts
    250

    Re: Macro for Multiple Print Options

    Muzza the reason I was wanting to use a userform was for formatting issues as the WS has quite a "buttons" on it already. I was going to have one single button that stimulates the userform mentioned above which allows the user to pick from 4 options. Then there will be a commandbutton1 on userform which allows them to "Print Preview" the selected print style and a commandbutton2 on the userform which allows them to "Print" with the chosen style.

+ 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. [SOLVED] macro for searching multiple options with in workbook
    By vivek_work in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-03-2013, 02:58 AM
  2. [SOLVED] Save as macro based on multiple options
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-30-2012, 08:34 PM
  3. Macro to change options of multiple pivot tables at once
    By nholtappels in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-22-2012, 12:05 PM
  4. save as and print options macro
    By ramblin racer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-01-2007, 03:48 AM
  5. Replies: 1
    Last Post: 09-23-2005, 02:05 PM

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