A little rusty here

  • Thread starter Thread starter Bill
  • Start date Start date
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
 
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
 
Thanks Allen.
Bill




Allen Browne said:
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
 

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