A little rusty here

B

Bill

I don't remember how to load an unbound combo
box. In a loop through a directory path, I've isolated
the foldernames from that path. As I find each
folder, I want to insert the folder name into the combo
box at form Open time. What are the code statement(s)
to accomplish the inserts. (Can't find the examples for
this)

Thanks,
Mr. Cobwebs
 
A

Allen Browne

See:
http://allenbrowne.com/ser-59.html

The ListFiles() function is designed to fill a list box with the files in a
filter, optionally limited to a file spec, including the subfolders if you
wish.

To use it with a combo, just change:
Optional lst As ListBox
to:
Optional lst As ComboBox
 
Top