Log in

View Full Version : VBA code to open folders and pdf file inside the folders



rockybalboa
07-25-2013, 04:49 PM
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..

patel
07-25-2013, 09:56 PM
do you want only open the pdf files ? and then ?

rockybalboa
07-25-2013, 10:07 PM
No actually i have to create a booklet of all the pdfs

Excel Fox
07-26-2013, 01:20 AM
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|

rockybalboa
07-26-2013, 06:48 AM
I wanted to bring all the pdfs together and make it a single file.

patel
07-26-2013, 11:38 AM
with Excel ? why not with a dedicated software ?

rockybalboa
07-26-2013, 11:43 AM
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.

patel
07-26-2013, 01:47 PM
folder names are not a problem, problem (for me) is joining pdf files with excel

rockybalboa
07-26-2013, 01:55 PM
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.

snb
07-26-2013, 02:34 PM
crossposted: VBA code to open folders and pdf file inside the folders (http://www.vbaexpress.com/forum/showthread.php?46955-VBA-code-to-open-folders-and-pdf-file-inside-the-folders)