Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Dec 2000
    Location
    California, USA
    Posts
    1,758
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Recursing Through Multiple Directories (03)

    I am having a challenge recursing through multiple directories. I keep loosing the focus of the directory.

    Example:
    Sub Test_It()
    i = 0
    j = 0
    strFileName = Dir("E:Hold*.*", vbHidden)
    MsgBox strFileName

    strFileName2 = Dir("E:HoldCSV_Files*.csv", vbHidden)
    MsgBox strFileName2
    i = i + 1
    strFileName = Dir()
    j = j + 1
    strFileName2 = Dir()
    End Sub


    The challenge that I am having is with the directory associated with strFileName and strFileName2. I don't believe they both can be referring to Dir().

    Thanks for your assistance,
    John

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Recursing Through Multiple Directories (03)

    The replies to <post:=461,155>post 461,155</post:> point to several ways around this.

Posting Permissions

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