I'm trying to access SharePoint directory from Excel VBA and loop over all files at this directory. But when I try to refer to the directory, then I get this error in return:
Path not found
I tried:
Set folder = fs.GetFolder("//mojsharepoint/xx")
and I tried this:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder("//mysharepoint/xx")
But when referring to a single file on the directory it works perfect
LoadFilePath = "//mojsharepoint/xx/file.xlsm"
Set WB = Workbooks.Open(LoadFilePath)