+ Reply to Thread
Results 1 to 5 of 5

VBA Code to merge exported pdf files

  1. #1
    Registered User
    Join Date
    10-19-2022
    Location
    India
    MS-Off Ver
    2016
    Posts
    5

    VBA Code to merge exported pdf files

    Hi,
    I have created a sheet based on Vlookup. In the following code value of "i" is lookup value. So this generates a table for each "i". For this, the following code generates individual pdf files for each "i", but I need all files merged into a single pdf file. My excel version is 2016. Please help me to edit this code.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by alansidman; 10-25-2022 at 10:19 AM.

  2. #2
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,974

    Re: VBA Code to merge exported pdf files

    Does this work for you?

    It copies the results down the sheet, combines then into a print range which is then saved as a pdf.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-19-2022
    Location
    India
    MS-Off Ver
    2016
    Posts
    5

    Re: VBA Code to merge exported pdf files

    Hye,
    Its working.
    Thank you Very much.

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

    Re: VBA Code to merge exported pdf files

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)

    However, if you continue to not use code tags, you can expect to have your thread BLOCKED until you add them yourself.
    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

  5. #5
    Forum Expert
    Join Date
    07-23-2018
    Location
    UK
    MS-Off Ver
    O365 32bit (Windows)
    Posts
    1,974

    Re: VBA Code to merge exported pdf files

    Thank you Very much.
    You're welcome.

+ 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. Code to merge files when range is cells such as D8, F8 K5
    By Jiffy_sol in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-09-2021, 12:39 PM
  2. Need code to merge PDF files in a folder in to single PDF file using adobe reader
    By Anisusa in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-24-2017, 07:40 AM
  3. [SOLVED] VB Code to merge TXT files
    By rizmomin in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-01-2015, 09:31 PM
  4. Need code to select files in a folder to merge PDF using adobe acrobat X
    By karel85 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-15-2014, 04:19 PM
  5. Merge data from different files - how to improve code
    By Masun in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2014, 03:20 AM
  6. Combining exported CVS files
    By papacon in forum Excel General
    Replies: 0
    Last Post: 07-08-2013, 08:59 AM
  7. VBA code To Merge All .csv files into a single excel sheet
    By windslayer in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2012, 07:17 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