+ Reply to Thread
Results 1 to 4 of 4

Print Selected Sheets To PDF

  1. #1
    Registered User
    Join Date
    08-20-2015
    Location
    Bodega Bay, CA
    MS-Off Ver
    2013
    Posts
    20

    Print Selected Sheets To PDF

    I have a workbook that contains a different # of sheets at various times. I would like to write a macro that will do the following:

    1) Select all visible sheets except for 3 sheets called "Setup" "Master" and "Stmt"
    2) Print/Export the selected sheets as a single pdf
    3) Name the pdf file based on the value in Setup sheet "A3" & "_" & value in Setup sheet "A5"
    4) Save the pdf in the same directory as the active workbook.

    Thank you in advance for your help.

  2. #2
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,521

    Re: Print Selected Sheets To PDF

    You could try this.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-20-2015
    Location
    Bodega Bay, CA
    MS-Off Ver
    2013
    Posts
    20

    Re: Print Selected Sheets To PDF

    Works great. Thank you.

  4. #4
    Forum Expert
    Join Date
    04-23-2009
    Location
    Matrouh, Egypt
    MS-Off Ver
    Excel 2013
    Posts
    6,882

    Re: Print Selected Sheets To PDF

    In point 1 you have mentioned that to select all visible sheets (so hidden sheets shouldn't be included)
    Try this little modification of jolivanes' code
    Please Login or Register  to view this content.
    < ----- Please click the little star * next to add reputation if my post helps you
    Visit Forum : From Here

+ 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. Print Selected Sheets with VBA
    By cg0789 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-31-2012, 11:16 AM
  2. macro to print selected sheets
    By hard worker in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 08-30-2012, 02:06 PM
  3. Print sheets as selected in table
    By dejhantulip in forum Excel General
    Replies: 0
    Last Post: 04-14-2012, 10:51 AM
  4. Print only selected sheets
    By puniet in forum Excel General
    Replies: 0
    Last Post: 03-12-2012, 09:17 AM
  5. Print Selected Sheets From Workbook
    By nicmarty in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-30-2010, 04:18 PM
  6. Print only selected sheets from listbox
    By stevemcleod in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-09-2010, 03:24 PM
  7. How to print a selected number of sheets?
    By Rafat in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-09-2006, 09:55 AM
  8. Print selected sheets in Excel
    By M H in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-04-2005, 02:06 PM

Tags for this Thread

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