Userform for Viewing file Directory

B

Balute

Trying to create the following userform:

Listbox1: view file directory. Trying to locate text files
Listbox2: view list of text files. Need to select one.
Listbox3: view data in text file selected
Button1: will initiate the import dialog box for selected file.

Thanks for any help.
 
B

BrianB

Have a look at the Dir function in VB Editor Help. You will have to us
this to recover file names with suffix .txt and use the Add method t
add them to your text box.

You cannot view the contents of a file without opening it
 

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