I am using the following code in an attempt to copy a file from one folder to another, but I get the above referenced error. Any suggestions?
Sub CopyFilesWithInput()
'Get Source Folder
Source_Folder = Application.InputBox("Enter Source Folder Name", _
"Source Folder Name", Type:=2)
If Source_Folder = "False" Then Exit Sub
'Get Destination Folder
Destination_Folder = Application.InputBox("Enter Destination Folder Name", _
"Destination Folder Name", Type:=2)
If Destination_Folder = "False" Then Exit Sub
'Build Source and Destination Variables
sfol = "f:\dept\acctg\acct year\2009\month end\" & Source_Folder
dfol = "f:\dept\acctg\acct year\2009\month end\" & Destination_Folder
'Perform Copy
Set fso = CreateObject("Scripting.FileSystemObject")
fso.CopyFile (sfol & "\kronos wo aas.xlsx"), dfol
Thanks,
Dwane