Upon understanding of Dir function: Dir [( path [, attributes ] ) ]
[Path] is optional and if it is not found, the DIR function will return a zero-length string.
I replaced StrFile = Dir with StrFile = "" on the below code, and it just debug.printed only one file on my directory.
So, What is the meaning of StrFile = Dir?
Dim StrFile As String
StrFile = Dir("c:\testfolder\*")
Do While Len(StrFile) > 0
StrFile = ""