Read File without opening

barongarrett

New Member
Joined
Nov 22, 2010
Messages
5
I have several excel files that I want to be able to read from to create drop down lists for a userform.

Drop Down 1: Type (Each Type is a folder that holds excel files for each size)
Drop down 2: Size (Options contingent on which Type was chosen)
Drop Down 3: Length (Options contingent on which Size was chosen)
Drop Down 4: Material (Options contingent on which Length was chosen)
Drop Down 5: Coating (Options contingent on which Material was chosen)

My thoughts are to have the macro populate Type dropdown at initilization time by reading parent folder and getting all subfolder names. The depending on which size user picks from Type dropdown, I want my macro to read the excel file and populate a multidimensional array to use for populating the other dropdowns, as opposed to just reading from the excel file each time a size or length is chosen.

Can anyone help me on best way to read the excel file into the array?
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Forum statistics

Threads
1,215,447
Messages
6,124,906
Members
449,194
Latest member
JayEggleton

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
Back
Top