sous2817
Well-known Member
- Joined
- Feb 22, 2008
- Messages
- 2,276
Hello everyone,
I'm completely spinning my wheels on this. I've put together some VBA that does everything I need when I run it from my work laptop. When I move the file to my workstation and log in, the code falls over saying the SharePoint path is invalid. Since it's my log in for both machines, the corporate permissions are the same and I can manually access the site from both machines (and confirm that the folder is there).
The simplified code is this:
This code returns true when I run it from my laptop and false when I run it from my workstation. If I put the sharepoint site in my browser, it takes me there fine on both machines.
Any ideas? Is there some permission somewhere that needs to be set?
I'm completely spinning my wheels on this. I've put together some VBA that does everything I need when I run it from my work laptop. When I move the file to my workstation and log in, the code falls over saying the SharePoint path is invalid. Since it's my log in for both machines, the corporate permissions are the same and I can manually access the site from both machines (and confirm that the folder is there).
The simplified code is this:
Code:
Sub test()
Dim SharePointSite As String
Dim fso As Scripting.FileSystemObject
Dim b As Boolean
Set fso = New Scripting.FileSystemObject
SharePointSite = "\\{SHAREPOINT SITE HERE}"
b = fso.FolderExists(SharePointSite)
Debug.Print b
End Sub
This code returns true when I run it from my laptop and false when I run it from my workstation. If I put the sharepoint site in my browser, it takes me there fine on both machines.
Any ideas? Is there some permission somewhere that needs to be set?