Macro in PathTest.xlsm:
Sub Makro1()
Path = ActiveWorkbook.Path
Range("A3").Value = Path
Set fso = CreateObject("Scripting.FileSystemObject")
Range("A4").Value = fso.FolderExists(Path) ' False!
Range("A5").Value = fso.FileExists(Path + "\PathTest.xlsm") ' False!
End Sub
This code works if file is stored in any normal folder, but when placed in Onedrive folder the check for existance fails.
Any hints? /Peter