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.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple

Forum statistics

Threads
1,136,330
Messages
5,675,152
Members
419,552
Latest member
jsanjur

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top