Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 -- Cheers Nigel |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Look in VBA help at the Dir function
-- - K Dales "Nigel" wrote: 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 -- Cheers Nigel |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, I found a solution ......
FDir = "C:\directory\" Fname = Dir(FDir, 7) Do While Fname < "" ' code to fill combo here Fname = Dir Loop -- Cheers Nigel "K Dales" wrote in message ... Look in VBA help at the Dir function -- - K Dales "Nigel" wrote: 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 -- Cheers Nigel |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Reading contents | Excel Discussion (Misc queries) | |||
Directory contents | Excel Programming | |||
reading contents of a file | Excel Programming | |||
Directory Contents | Excel Programming | |||
Browsing to URL and reading contents | Excel Programming |