I am familiar with Windows Dir(oPath,”*.JPG) but am having difficulty with Excel 2004 for Mac.
Excel 2004 does not use wildcards for Mac but utilizes the MacId of the file.
Here is an example of the code I am using. My challenge is that not all JPG files are being listed and I am not sure why.
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