arnelgp
..forever waiting... waiting for jellybean!
- Local time
- Tomorrow, 05:36
- Joined
- May 7, 2009
- Messages
- 20,674
it is a Sub, so it will not Return anything.
what you need is to pass your Collection to the Sub
and the Collection will be "filled" when the
Sub finished:
what you need is to pass your Collection to the Sub
and the Collection will be "filled" when the
Sub finished:
Code:
Dim fpath As String
Dim col As New Collection
fpath = "\\Drive\Home\Desktop\"
'arnelgp
Call RecursiveDir(col, fpath, "*.*", True)
Debug.Print col.count
'returns zero every time, fpath is valid and has several files/folders