+ Reply to Thread
Results 1 to 5 of 5

Need to create a single pdf that includes 4 pages created from the same Worksheet

  1. #1
    Registered User
    Join Date
    12-01-2016
    Location
    Birmingham, AL
    MS-Off Ver
    standard 2016
    Posts
    8

    Need to create a single pdf that includes 4 pages created from the same Worksheet

    Hello friends,

    I need to create a single pdf that includes 4 pages. The data for each sheet is on the same data set. I'd like to retain the row headers (ID) on each page and have a separate unique column on each page. I've included a wb with dummy data. I'm able to accomplish this if i split them up into their own sheets and loop through them(not what i need). however, my actual data set is much larger and would require me to duplicate data on too many extra worksheets. i'm thinking there is a more efficient way to accomplish this without duplicating data on additional sheets. I'm looking for a vba solution.

    ***Id Like to save as 1 PDF file that contains 4 pages
    Pg1 - Has Column A and B
    pg2 - has column A and C
    Pg3 - has column A and D
    Pg4 - has column A and E

    Really appreciate any advice,
    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: Need to create a single pdf that includes 4 pages created from the same Worksheet

    try this Macro. it assumes all your data starts in A3 and the only variable is the number of rows you have.

    I simply recorded a macro then manipulated the row numbers to be variable. Depending on your printer set up you may need to amend the last section that prints to PDF but if that happened manually record that and paste the relevant code in to this macro

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Valued Forum Contributor
    Join Date
    12-22-2015
    Location
    HK
    MS-Off Ver
    2010
    Posts
    532

    Re: Need to create a single pdf that includes 4 pages created from the same Worksheet

    This code need 2007 with sp2 or higher
    Please Login or Register  to view this content.
    Last edited by ikboy; 06-11-2020 at 10:06 PM.

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

    Re: Need to create a single pdf that includes 4 pages created from the same Worksheet

    Another possibility
    Please Login or Register  to view this content.

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

    Re: Need to create a single pdf that includes 4 pages created from the same Worksheet

    In case you want/need pagebreaks.
    Please Login or Register  to view this content.

+ 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. [SOLVED] Saving to PDF includes blank pages?
    By taylorsm in forum Excel General
    Replies: 7
    Last Post: 08-04-2016, 12:02 PM
  2. Macro to print specific pages in a single worksheet (2007)
    By nibandit21 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2016, 12:49 AM
  3. Replies: 1
    Last Post: 10-24-2014, 06:17 AM
  4. Create Multiple pages in Single word document
    By SathishKumar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-28-2013, 01:12 PM
  5. Query multiple pages into a single worksheet
    By chrissmorrow in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-14-2011, 05:36 PM
  6. Formula includes Worksheet Not Yet Created
    By hop17 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-19-2009, 01:00 PM
  7. [SOLVED] Single worksheet, multiple pages?
    By Peter in forum Excel General
    Replies: 9
    Last Post: 01-23-2005, 06: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