I'm trying to copy a file from a SharePoint location to a network folder. I can get the file to Open and save as but all I really need to do is copy it.
Code looks like this:
On run, I'm getting the error 52 but again, if I run the code below, I'm good, so I think that the paths and file names are ok.
Any help would be so appreciated!
Code looks like this:
Code:
strPathSrc = "SharepointLoc/My%20Reports/" strPathTgt = "P:\MyReports\" strFileSrc = "This%20File.xlsx" strFileTgt = "This File.xlsx" Filecopy strPathSrc & strFileSrc, strPathTgt & strFileTgt
Code:
Workbooks.Open Filename:=strSrcFull Workbooks(strFileTgt).SaveAs strTgtFull Workbooks(strFileTgt).Close
Comment