Nadine
New Member
- Joined
- May 12, 2020
- Messages
- 32
- Office Version
- 365
- Platform
- Windows
Hello and thank you for any attention my post may receive.
I have a need to list the files in the DCIM subfolders of my iphone 10. I have VBA, from another site, which does the job nicely for files in the folders of my computer however I am struggling with the same for my iPhone.
This is the code I am using:
The error lies in setting the 'oFolder'.
Any help would be greatly appreciated.
I have a need to list the files in the DCIM subfolders of my iphone 10. I have VBA, from another site, which does the job nicely for files in the folders of my computer however I am struggling with the same for my iPhone.
This is the code I am using:
VBA Code:
Dim oFSO As Object
Dim oFolder As Object
Dim oFile As Object
Dim i As Integer
Set oFSO = CreateObject("Scripting.FileSystemObject")
Set oFolder = oFSO.GetFolder("This PC:\Apple iPhone\Internal Storage\DCIM\111APPLE")
For Each oFile In oFolder.Files
Cells(i + 1, 1) = oFile.Name
i = i + 1
Next oFile
The error lies in setting the 'oFolder'.
Any help would be greatly appreciated.