My goal is to read a directory for all JPEG files and produce a list. The challenge is that not all the JPEG files are being listed thus my confusion.
I have provided partial code and a picture of directory and list generated.
Code: Select all
strFileName = Dir(oPath, MacID("JPEG"))
While strFileName <> ""
ActiveSheet.Range("A2").Offset(i, 0).Value = strFileName
i = i + 1
strFileName = (Dir)
Wend
Thanks for taking a look,
John