+ Reply to Thread
Results 1 to 8 of 8

Macro to Print Multiple Sheets to Single PDF

  1. #1
    Registered User
    Join Date
    03-19-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    6

    Macro to Print Multiple Sheets to Single PDF

    I know there are many threads out there similar to this one, however, I have not quite found one to fit my situation. With my limited coding skills (self taught out of necessity), I am challenged on this one. I have code that creates a dialog box for the users to select which sheets to print (workbook sheets can change). This works great and adapts as sheets are added and prints to the printer just as designed. However, I now need to be able to do this same thing but print to a PDF - I can get it to print each selected sheet individually to a single PDF, but need it to not only print to PDF, but to consolidate the selected sheets into a single PDF file.

    I have attached my original code that prints to a standard printer. Any help on taking this in a new direction would be greatly appreciated. I apologize in advance for my non-technical background!

    Thanks.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to Print Multiple Sheets to Single PDF

    Please Login or Register  to view this content.
    If solved remember to mark Thread as solved

  3. #3
    Registered User
    Join Date
    03-19-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Macro to Print Multiple Sheets to Single PDF

    First - thank you very much. I cannot get the code to work. I think I figured out how to insert the code into what I had already put together. However, I have had several errors. The latest error is "object does not support this property or method". Any thoughts?

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to Print Multiple Sheets to Single PDF

    can you attach a sample file ?

  5. #5
    Registered User
    Join Date
    03-19-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Macro to Print Multiple Sheets to Single PDF

    Here is the sample file I am working on. Thanks for your help
    Attached Files Attached Files

  6. #6
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573

    Re: Macro to Print Multiple Sheets to Single PDF


  7. #7
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Macro to Print Multiple Sheets to Single PDF

    Quote Originally Posted by LEber View Post
    First - thank you very much. I cannot get the code to work. I think I figured out how to insert the code into what I had already put together. However, I have had several errors. The latest error is "object does not support this property or method". Any thoughts?
    I forgot a function
    Please Login or Register  to view this content.
    see attached sample
    Attached Files Attached Files
    Last edited by patel45; 09-07-2013 at 04:14 AM.

  8. #8
    Registered User
    Join Date
    03-19-2013
    Location
    Illinois
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Macro to Print Multiple Sheets to Single PDF

    Thanks - That gets me in the direction that I needed.

+ 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. Replies: 1
    Last Post: 02-08-2013, 10:36 PM
  2. MACRO to print multiple sheets to multiple PDF's with different names
    By bruwer in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-15-2010, 07:03 AM
  3. Need macro to read single datasheet to multiple sheets..
    By KJHSchmidt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-15-2010, 02:11 AM
  4. Macro: To print multiple sheets in a folder
    By NZMax in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-16-2009, 01:07 AM
  5. Print Certain Sheets to Single PDF Macro
    By matthewace in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-18-2008, 08: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