Libre 6.4.4.2
Im trying the below code to read the structure of a folder with a few subfolders in it.
but the Loop never runs and no error shown
option vbasupport 1
Sub checkfolders
fso=CreateObject("Scripting.FileSystemObject")
path = "somefolderpath"
fol = fso.getfolder(path)
for each subfol in fol.subfolders
next subfol
End Sub
i did find another way to do this using the ‘Dir’ function which gives correct results but was curious to know why the above method fails