K
Keith G Hicks
I want to run through an enumeration in a loop for scanning client sub
folders.
Base folder is D:\TestStuff\
Subfolders in that are Jones, Smith, Ryan (there could be several more and
will not be named this simple)
I want to run a loop that goes through those folders one at a time like
this:
For x = Jones to Ryan
.... check for files in each sub folder and do a bunch of processing
Next x
I thought I could do soemthing with enumerations where the enum would be
defined like this:
Private enum clientFolders
Jones = 1
Smith = 2
Ryan = 3
End Enum
Then I could do something like this
For x = 1 to 3
msgbox(clientFolders.x)
next x
But that doens't work. I'm not sure how to do this.
Thanks,
Keith
folders.
Base folder is D:\TestStuff\
Subfolders in that are Jones, Smith, Ryan (there could be several more and
will not be named this simple)
I want to run a loop that goes through those folders one at a time like
this:
For x = Jones to Ryan
.... check for files in each sub folder and do a bunch of processing
Next x
I thought I could do soemthing with enumerations where the enum would be
defined like this:
Private enum clientFolders
Jones = 1
Smith = 2
Ryan = 3
End Enum
Then I could do something like this
For x = 1 to 3
msgbox(clientFolders.x)
next x
But that doens't work. I'm not sure how to do this.
Thanks,
Keith