Results 1 to 3 of 3

Thread: File Lsit boxes

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    File List boxes small question

    Hi

    How do u run through every file in a File box, open it and remove data from it

    (I know how to open the files )
    Last edited by AliBail; Jun 3rd, 2001 at 11:45 AM.

  2. #2
    Addicted Member stevess's Avatar
    Join Date
    May 2001
    Posts
    251
    What is it that you don't know how to do?
    To cycle through the files in the list:

    Dim i As Long
    Dim sFullPath As String

    For i = 0 To File1.ListCount
    'Debug.Print File1.List(i)
    sFullPath = File1.Path & "\" & File1.List(i)
    'do your stuff here
    Next i

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Feb 2001
    Location
    Scotland, UK
    Posts
    321

    Yep thats it thanks

    Yep thats it thanks.

    Soz, i should of been a bit more specific.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width