Window to display file names

roosevelt

New Member
Joined
Jan 28, 2005
Messages
31
Hi there,

I'm programming a macro in which the user specifies a certain folder.

The macro should then look through the folder to find all files starting with "PR". I then want all these files to be displayed in a window for the user to choose a selection of these files to be edited.

Can someone assist me in creating such a window? The window should display all "PR" files, allow the user to select the files and then close with an OK button.

Thanks in advance

Roosevelt
 

Some videos you may like

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Scott Huish

MrExcel MVP
Joined
Mar 17, 2004
Messages
19,958
Office Version
  1. 365
  2. 2010
Platform
  1. Windows
Are these files that start with PR Excel files?
Since you're allowing the user to specify the folder, why not use the standard Open dialog box, but just show files that start with PR and of whatever type you need?
Do you want to actually open the files or if not what do you want to do with the filenames selected?
 

roosevelt

New Member
Joined
Jan 28, 2005
Messages
31
Hi there,

i want to display all the files starting with PR, which are only Excel files. The data in the files should be merged. So, I want to display all the files, the user selects a few and they are then opened, merged and closed.

Is there a different window available other than the Open dialog to perform such a task?
 

Watch MrExcel Video

Forum statistics

Threads
1,122,556
Messages
5,596,820
Members
414,104
Latest member
imamalidadashzada

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