Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

File list

Status
Not open for further replies.

AdamWhitehouse

Programmer
Aug 7, 2000
34
GB
I am trying to Print the list of files that appear in my file1 box, but can only index 1 file at a time, any assistance \ tips appreciated.

Adam
 
hi ,

Is this what u want.

Dim i as Long

File1.Path = App.Path '[ or what ever ]

Do While File1.ListCount <> i
MsgBox File1.List(i) '[ can assign to a variable
i = i + 1 'or an array also ]
Loop

Hope this works for u. Let me know

Cheers!!!
Niraj >:):O>

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top