+ Reply to Thread
Results 1 to 2 of 2

Export multiple pages and ranges to PDF

  1. #1
    Registered User
    Join Date
    05-11-2019
    Location
    Leicester, England
    MS-Off Ver
    Office 365
    Posts
    52

    Export multiple pages and ranges to PDF

    I am trying to Export 4 sheets to 1 PDF however i only want selected data on each sheet.

    I have tried copying everything into one sheet however they have different column widths so this is not a viable option.

    I have also tried the following code that works to a point...

    On selecting all the sheets it appears to use the range on the last selected sheet for all 4 selected sheets rather than adhering to the previously selected ranges. this causes an issue due to one of the sheets potentially needing more than 1 page depending on the data shown in a pivot table.

    I am unable to share the file due to the nature of its contents however i have shared the VBA code i have so far below.

    Any help will be appreciated

    Please Login or Register  to view this content.

  2. #2
    Registered User
    Join Date
    05-11-2019
    Location
    Leicester, England
    MS-Off Ver
    Office 365
    Posts
    52

    Re: Export multiple pages and ranges to PDF

    I have managed to do it myself, in stead of deleting the post i thought i would post my fix just in case it helps anybody else in the future.

    There may well be a better way of doing it, and please correct it if this is the case however this is what i finally came up with



    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. Replies: 1
    Last Post: 12-13-2018, 09:34 AM
  2. [SOLVED] Printing multiple ranges from multiple pages into one PDF
    By drautenkranz in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-24-2018, 10:10 AM
  3. Replies: 0
    Last Post: 11-10-2016, 10:18 AM
  4. How to export multiple ranges to a single PDF?
    By takriv in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-11-2015, 06:24 AM
  5. Replies: 1
    Last Post: 03-22-2013, 06:36 PM
  6. Need to autosum ranges of cells within multiple pages and then sum those as well.
    By nightbiscuit in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2013, 05:48 PM
  7. Need to autosum ranges of cells within multiple pages and then sum those as well.
    By nightbiscuit in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-22-2013, 05:46 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