R
rfuscjr via AccessMonster.com
Dim SourceFile, DestinationFile
SourceFile = "X:\MYPG\Reports\MISC\MYPG_FM_wDetails.xls"
DestinationFile = "S:\Finance_Team_Stuff\budg\Current_Year\Detail\
MYPG_FM_wDetails.xls"
FileCopy SourceFile, DestinationFile
MsgBox "Done!"
Notes:
I mapped the S share to a sharepoint site. The file actually does copy over
but I get an error on the FIleCopy statement. Which interupts my automation.
Here is the error:
Run Time Error ' 52'
Bad File name or number
SourceFile = "X:\MYPG\Reports\MISC\MYPG_FM_wDetails.xls"
DestinationFile = "S:\Finance_Team_Stuff\budg\Current_Year\Detail\
MYPG_FM_wDetails.xls"
FileCopy SourceFile, DestinationFile
MsgBox "Done!"
Notes:
I mapped the S share to a sharepoint site. The file actually does copy over
but I get an error on the FIleCopy statement. Which interupts my automation.
Here is the error:
Run Time Error ' 52'
Bad File name or number