Reading Contents of a Directory

  • Thread starter Thread starter Nigel
  • Start date Start date
N

Nigel

Hi All
I need to fill a set of combo boxes with a list of files from separate
directories. No problem with filling a combo box but what is the best
method of reading a directory contents. I will be looking for .xls file
types with a text mask for the filename. e.g. all files beginning "ARTS_"
and ending ".XLS"

TIA
 
Thanks, I found a solution ......

FDir = "C:\directory\"
Fname = Dir(FDir, 7)
Do While Fname <> ""
' code to fill combo here
Fname = Dir
Loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top