+ Reply to Thread
Results 1 to 6 of 6

How to open multiple worksheets into one .PDF

  1. #1
    Registered User
    Join Date
    09-20-2012
    Location
    Peoria, Arizona
    MS-Off Ver
    Excel 2013
    Posts
    39

    Red face How to open multiple worksheets into one .PDF

    Good Morning Folks!

    I am trying to converts several worksheets into a .pdf document and have spent a few hours surfing and have come up with this so far:

    Sub PDFPrintNSave()
    Application.ScreenUpdating = False
    Sheets(Array("Sheet 1", "Sheet 2")).Sheet1 , , 1
    Sheet1.ExportAsFixedFormat Type:=x1TypePDF, Filename:="C:\PDF\1on1.pdf", OpenAfterPublish:=True
    Application.ScreenUpdating = True
    End Sub

    The problem I can't seem to get past is in the second line (bolded). I cannot figure out what should be input here to make the array work. Any ideas?

  2. #2
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: How to open multiple worksheets into one .PDF

    Hi Tazyote,

    Take a look here: multiple-sheets-to-pdf
    Last edited by JBeaucaire; 12-27-2019 at 04:00 AM.
    -------------
    Tony

  3. #3
    Forum Expert Jakobshavn's Avatar
    Join Date
    08-17-2012
    Location
    Lakehurst, NJ, USA
    MS-Off Ver
    Excel 2007
    Posts
    1,970

    Re: How to open multiple worksheets into one .PDF

    See my answer here:

    http://stackoverflow.com/questions/2...51096#20751096
    Gary's Student

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,239

    Re: How to open multiple worksheets into one .PDF

    Try:

    Please Login or Register  to view this content.

    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Registered User
    Join Date
    09-20-2012
    Location
    Peoria, Arizona
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: How to open multiple worksheets into one .PDF

    Thanks, These all work great. I wish I could have found these this morning.

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    48,239

    Re: How to open multiple worksheets into one .PDF

    You're welcome.

+ 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. Multiple Worksheets Open
    By Shalamar in forum Excel General
    Replies: 1
    Last Post: 02-23-2010, 06:44 PM
  2. [SOLVED] How do I open multiple hidden worksheets all at once?
    By Gord Dibben in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 AM
  3. [SOLVED] How do I open multiple hidden worksheets all at once?
    By Last Samurai in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  4. [SOLVED] How do I open multiple hidden worksheets all at once?
    By Last Samurai in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  5. [SOLVED] How do I open multiple hidden worksheets all at once?
    By Last Samurai in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 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