+ Reply to Thread
Results 1 to 4 of 4

MAcro: Print All pdf files in a specific folder

  1. #1
    Registered User
    Join Date
    01-10-2018
    Location
    USA
    MS-Off Ver
    10
    Posts
    17

    MAcro: Print All pdf files in a specific folder

    Hello All!
    I was wondering if any one had a code to print out all .pdf files in a directory like a batch printing process.

    I have a code that works for Excel files but not sure how to modify for .pdf

    I am open to a new code or if someone can help me modify the one below.

    Thank you in advance

    Please Login or Register  to view this content.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: MAcro: Print All pdf files in a specific folder

    Hello kalyan46,

    This macro will print out all of the PDF files in a given folder. You can interrupt the printing by pressing the CTRL+Break keys. If you have any problems with the code, let me know.

    Copy and paste the code below into a VBA Module in your workbook.
    Please Login or Register  to view this content.
    Last edited by Leith Ross; 08-28-2018 at 06:11 PM.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    01-10-2018
    Location
    USA
    MS-Off Ver
    10
    Posts
    17

    Re: MAcro: Print All pdf files in a specific folder

    This initially worked fine.. Now for some reason Microsoft Edge is trying to be the default reader and causing an error. I have to go back into default settings and select Adobe as the default which will then run the code.
    Is there a way to specify Adobe as the reader or make it work with Edge or make it work with either reader?
    Thank you for your assistance!

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: MAcro: Print All pdf files in a specific folder

    Hello kaiyan46,

    This amended version of the macro opens Acrobat Reader locally on your computer and then prints the PDF file. Let me know if you have any problems.

    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: 01-28-2019, 06:55 PM
  2. Macro: Search a folder and Print files from excel list
    By kalyan46 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2018, 02:20 PM
  3. Macro to print to pdf and save in a specific folder
    By fayep1986 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-13-2016, 07:17 AM
  4. i need a macro to pull excel files from a folder and print them
    By kmraz in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-06-2013, 06:53 PM
  5. Apply Macro to all files in a specific folder.
    By AntiPivotTable in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2013, 12:48 PM
  6. Macro to Open specific files in a Folder
    By lorena.tgarza in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-15-2012, 09:01 AM
  7. Macro to run macros in all files in a specific folder
    By JESSIER4025 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-10-2012, 09:20 AM

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