+ Reply to Thread
Results 1 to 3 of 3

print macro with selected options

  1. #1
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    print macro with selected options

    hi,

    is it possible to create a macro that prints the active sheet with the following print conditions

    1. print to "microsoft pdf" printer
    2. pages 1-10 only
    3. selected page size is FOLIO (8.5" x 13")
    4. landscape

  2. #2
    Forum Contributor
    Join Date
    09-19-2018
    Location
    USA
    MS-Off Ver
    2016
    Posts
    208

    Re: print macro with selected options

    If you record a macro of you choosing those settings and printing it will get you most of the way. To get it to auto print to a specific printer adds a kink into it, though. With a function from here, I put this together and it seems to work.

    You'll need to change the ".PaperSize" reference, since I don't have a Folio (8.5x13) option on my PC. Tabloid is 11x17. Also, if you try first by recording a macro, you'll see a plethora of additional PageSetup options you can change within VBA (margins, headers, etc.)
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor
    Join Date
    12-01-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2021
    Posts
    979

    Re: print macro with selected options

    hi,

    thanks for the reply
    got your idea to record macro, below works

    cant find also 8.5 x 13 paper size so i just chose legal size

    Please Login or Register  to view this content.
    Last edited by k1dr0ck; 09-28-2018 at 04:29 AM.

+ 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 to Print All Options in a Drop Down List
    By lianne.cuscani in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 01-25-2018, 01:51 PM
  2. [SOLVED] Macro to Print All Options in a Drop Down List
    By Kennylj24 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-15-2016, 11:55 AM
  3. Macro print all options of Combo Box
    By julien_hh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-05-2015, 06:00 AM
  4. Replies: 0
    Last Post: 11-14-2014, 08:56 AM
  5. Macro for Multiple Print Options
    By jaredmccullough in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-16-2014, 07:23 AM
  6. View /Print selected options contiguously separate page
    By t_track in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-25-2008, 07:26 PM
  7. 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

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