Results 1 to 10 of 10

Thread: VBA code to open folders and pdf file inside the folders

  1. #1
    Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0

    VBA code to open folders and pdf file inside the folders

    Hi,

    I have a list of ids in excel sheet like 1234, 4567, 7890.
    I have various folder created whose names ends with these ids ( ***_1234, ***_4567).
    Inside these folders i have pdf file ending with dates (*** 23 Apr 2013, *** 20 Jun 2013).

    I wanted a code which will match the ids in excel file and open the respective folders ending with those ids. After opening the folders it should open the latest PDF file using date.

    Please let me know whether this is possible or not. If not also suggest some other way to do this.

    Thanks..

  2. #2
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    12
    do you want only open the pdf files ? and then ?

  3. #3
    Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0
    No actually i have to create a booklet of all the pdfs

  4. #4
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    What do you mean by booklet of all PDFs? Do you want to merge all PDFs? Or do you want to create a master list of hyperlinks to all the PDFs|
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  5. #5
    Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0
    I wanted to bring all the pdfs together and make it a single file.

  6. #6
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    12
    with Excel ? why not with a dedicated software ?

  7. #7
    Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0
    Yes there is a separate software i will use for that which will create a book of PDFs
    The folder names are actually company names with their ids. PDF file names are also company names with Dates.
    I am ready to make necessary changes in the folder names if it is making it easier.

  8. #8
    Member
    Join Date
    Jun 2013
    Posts
    93
    Rep Power
    12
    folder names are not a problem, problem (for me) is joining pdf files with excel

  9. #9
    Junior Member
    Join Date
    Jul 2013
    Posts
    5
    Rep Power
    0
    So can we do something like it identifies all the folders and then the latest PDF files inside those folders and copy all the PDFs to a new folder.

  10. #10

Similar Threads

  1. Open PDF file with PowerPoint VBA
    By bg52ip in forum Powerpoint Help
    Replies: 4
    Last Post: 06-12-2013, 11:28 PM
  2. Moving Several Files To Several Folders
    By galang_ofel in forum Excel Help
    Replies: 3
    Last Post: 06-01-2013, 04:21 PM
  3. HOW TO Save Processed Files Into Different Folders
    By DARSHANKmandya in forum Outlook Help
    Replies: 6
    Last Post: 04-10-2013, 07:29 PM
  4. Replies: 4
    Last Post: 06-07-2012, 09:50 PM
  5. Looping through Each Files and Folders
    By Rajan_Verma in forum Rajan Verma's Corner
    Replies: 0
    Last Post: 04-18-2012, 12:12 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •