+ Reply to Thread
Results 1 to 5 of 5

Possible vba export specific sheets to pdf with range selection

  1. #1
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Question Possible vba export specific sheets to pdf with range selection

    Hi to All,

    My example workbook is attached. In my original there are 5 contstants (3 of them are hided) and various number (may lead to 200 sheets) of sheets after 5 constants. What I want to realize is to export specific sheets from 2nd to the last one in a single pdf file with range selection starting from 5th row to last used cell can be seen in attachment . My constant sheets string:

    1st Sheet name “CALC” (Unhide)
    2nd Sheet name “INDEX” (Unhide)
    3rd Sheet name “HELPER1” (Hide)
    4th Sheet name “HELPER2” (Hide)
    5th Sheet name “HELPER3” (Hide)

    The rest of the Sheets starting after "HELPER3" have different names of Hotels.

    Thanks in advance for your kindest helps.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Re: Possible vba export specific sheets to pdf with range selection

    I have supported with the code below and works fine to create seperate pdf output but not succeded to save as single pdf file. How can the code altered to save each pages in single pdf file not seperate? Thanks in advance for helps.

    Please Login or Register  to view this content.

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,865

    Re: Possible vba export specific sheets to pdf with range selection

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  4. #4
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Re: Possible vba export specific sheets to pdf with range selection

    Dear Alan,

    This query was only sent to Chandoo Excel Forum site nomore other sites. The link of the query: https://chandoo.org/forum/threads/ne...-to-pdf.41586/

    Best Regards

  5. #5
    Registered User
    Join Date
    10-22-2018
    Location
    Turkey
    MS-Off Ver
    Office2010
    Posts
    84

    Re: Possible vba export specific sheets to pdf with range selection

    Dear Alan,
    One more thanks for your support. I compiled your code with your referenced web site code as in below, now works fine.
    Regards

    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] export range of cel with specific name & ignor any empty row
    By mazan2010 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 08-15-2017, 10:56 AM
  2. VBA export specific rangw , and specific sheets
    By Psiridis in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2017, 08:38 AM
  3. [SOLVED] VBA to Export specific sheets to Xls
    By fleyd in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-16-2016, 04:16 AM
  4. Export specific range to txt file
    By Sab_1 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 06-13-2016, 03:40 PM
  5. VBA to Export Selection of sheets. But only the values of the sheets??!
    By igullage in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-07-2015, 10:41 PM
  6. [SOLVED] Auto adjust sheets to specific range selection
    By hcyeap in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-04-2014, 02:31 AM
  7. [SOLVED] Export specific sheets into 1, 2, or 3 workbooks, depending on cell value
    By Ppsych in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 01-25-2013, 01: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