W
Warrio
Hello!
How come that we cannot use more than once the function Dir in the same
procedure?
I would like to browse with VBA, each folder of a drive and go into each
subdirectory with a loop
the code looks like:
myDir = Dir("C:\",vbDirectory)
do While myName <> ""
IF myDir <> "." and myDir <> ".." THEN
mySubDir= Dir("C:\" & myDir)
...
ENDIF
Loop
Thanks for any suggestion or alternative!
How come that we cannot use more than once the function Dir in the same
procedure?
I would like to browse with VBA, each folder of a drive and go into each
subdirectory with a loop
the code looks like:
myDir = Dir("C:\",vbDirectory)
do While myName <> ""
IF myDir <> "." and myDir <> ".." THEN
mySubDir= Dir("C:\" & myDir)
...
ENDIF
Loop
Thanks for any suggestion or alternative!