Populate Listbox on Userform with file names

O

OM

How do I populate a listbox with filenames.
I would like (for example) to have a userform with the listbox on it,
and an "Add" button that opens a Windows Explorer file box, that
allows me to choose a file. When the file is chosen, it is added to
the list box.

As an extra, when a file has been added to the box, double clicking on
the filename would open the file.

Thanks in advance,

Rob OM Lepper
 
J

Jim Cone

With what part are you having a problem?
--
Jim Cone
Portland, Oregon USA
http://tinyurl.com/ListFiles




"OM" <[email protected]>
wrote in message
How do I populate a listbox with filenames.
I would like (for example) to have a userform with the listbox on it,
and an "Add" button that opens a Windows Explorer file box, that
allows me to choose a file. When the file is chosen, it is added to
the list box.

As an extra, when a file has been added to the box, double clicking on
the filename would open the file.
Thanks in advance,
Rob OM Lepper
 

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

Top