+ Reply to Thread
Results 1 to 4 of 4

Print multiple selected worksheets to separate PDF's

  1. #1
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Question Print multiple selected worksheets to separate PDF's

    Hi,

    I have the following code which I am using to print to PDF

    Please Login or Register  to view this content.
    It's working for what I need but it could be just a little bit better. Currently I have to use the macro to print each worksheet separately to get a separate PDF document. Is it possible to adapt this slightly? Basically it would be great if the macro would print each worksheet in the workbook containing text "Invoice" in the worksheet name to a separate PDF, the filename and path to remain as is in the code above. I also like the 2 second delay.

    Workbook is called Header & Footer (if this is required).

    Many thanks for any assistance which can be provided.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Print multiple selected worksheets to separate PDF's

    Try this:

    Please Login or Register  to view this content.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

  3. #3
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Print multiple selected worksheets to separate PDF's

    Hi,

    Thanks for your reply. I couldn't get the code to work. I have adapted the code slightly (below) and it's now working but only for the first worksheet containing "Invoice". When it comes to the second tab it's getting stuck at Save As dialog box. Looks like can't follow macro code to create file name required. Does this make sense?

    Further help would be greatly appreciated. Thanks.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    08-10-2010
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    45

    Re: Print multiple selected worksheets to separate PDF's

    Getting this macro to work is the final step in a series of macro I've not got to really improve a process, would appreciate any assistance anyone can provide. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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