+ Reply to Thread
Results 1 to 3 of 3

Printing Only Selected Sheets from Multiple Workbooks to A Single PDF File

  1. #1
    Registered User
    Join Date
    02-03-2014
    Location
    Saint Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Printing Only Selected Sheets from Multiple Workbooks to A Single PDF File

    So what I have collection of workbooks that are generally of the same layout but not exactly. I only wish to print the worksheets from each workbook whose names are included in an array, say segment(a:f), in the order of the array.

    I also wish to print all of these worksheets to a single pdf. I have managed to write a macro to print only the desired worksheets. However, I still am unsure how to handle the following problems.

    1: Occasionally the tabs are not ordered in the array order. As such, while they will all print, they remain in the order as found in the workbook instead of as desired
    2: Am really at quite a loss to how to get all of the workbooks into one PDF. My inclination is to somehow select all of the desired sheets from all of the workbooks at once prior to printing, or somehow append subsequent printings onto an already created PDF. Unfortunately I am unsure how to do either of those options.

    See below for the code I am using to print from one workbook.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,653

    Re: Printing Only Selected Sheets from Multiple Workbooks to A Single PDF File

    Try something like this...

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    02-03-2014
    Location
    Saint Louis, MO
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Printing Only Selected Sheets from Multiple Workbooks to A Single PDF File

    The reordering procedure was working, though I am I'm still unsure how to address the multiple workbook piece?

    Also, when I come across the export to PDF code, I receive an invalid procedure call or argument error. In my limited past, I had always just printed with the Adobe PDF printer, so I am unfamiliar with what may be causing the error in the export statement...

+ 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. VBA move multiple and selected sheets/tabs to new file and copy file as value
    By NeilM in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-01-2013, 06:19 AM
  2. Appen 2 or more workbooks with multiple sheets into a single workbook
    By vbakillsnuts in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2012, 12:33 AM
  3. Printing selected sheets to file named per ws name
    By 1eyedjack in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2010, 01:24 PM
  4. Exporting (printing) multiple worksheets as a single pdf file
    By Dano in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2008, 01:24 PM
  5. Printing Multiple Sheets to One PDF file
    By johnnywinter in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-01-2007, 11: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