view all pdf files with a specific string in name

VBAconfused

New Member
Joined
Sep 6, 2009
Messages
6
Hi. You all have been helpful in the past. I hope you come through again for me.
I woud like a VBA code that when excuted in an Excel file (e.g., option 1 on an inputbox) will prompt me for s string (e.g., "firstname1") and then give me a pop up window with a list of all pdf files in the current and all subdirectories that contain the string ("firstname1") (which may be accomplished, for example, by executing the Search command in the windows explorer). I would like to click on the list and view any individual pdf file.
After I am done viewing the pdf file, it would be nice as a bonus to retrace my steps, i.e., first to the list of the files just shown in the pop window (so that I can look at other files on the list), and then click out of the popup window and get back to the excel program so that I can type my next string (e.g., "firstname2").
Thank you in advance.
 

Some videos you may like

Excel Facts

Excel Wisdom
Using a mouse in Excel is the work equivalent of wearing a lanyard when you first get to college

Watch MrExcel Video

Forum statistics

Threads
1,108,655
Messages
5,524,131
Members
409,561
Latest member
ay123

This Week's Hot Topics

Top