NessPJ
Active Member
- Joined
- May 10, 2011
- Messages
- 422
- Office Version
- 365
I have a few Excel tools that work without issue and i want to try and make them compatible with using the tool from a Sharepoint.
I copied the path to some of the files, from the Sharepoint (File -> Info -> Path) section but it still does not seem to work (i receive Error: Bad File Name or Number).
Is there some other type of pathing i should be using?
If i Debug.Print the source Filepaths i can just copy them into my browser and they work right away!
I copied the path to some of the files, from the Sharepoint (File -> Info -> Path) section but it still does not seem to work (i receive Error: Bad File Name or Number).
Is there some other type of pathing i should be using?
If i Debug.Print the source Filepaths i can just copy them into my browser and they work right away!
VBA Code:
Dim Dag1 As String
Dag1 = Range("AC9").Value
If Not IsEmpty(Range("O9")) Then
FileCopy "https://companyname.sharepoint.com/sites/155/SiteName/FolderName%20With%20Spaces/OtherFolder/1.1)%20AnotherFolder/Data/log.file." & Dag1 & ".csv", "https://companyname.sharepoint.com/sites/155/SiteName/FolderName%20With%20Spaces/OtherFolder/1.1)%20AnotherFolder/Data/Processed/Dag%201/log.file.processed.xls"
End If