willow1985
Well-known Member
- Joined
- Jul 24, 2019
- Messages
- 888
- Office Version
- 365
- Platform
- Windows
I have a macro that works on multiple other computers with the exception of one. I get a script out of range error on this one computer and I cannot figure out why. It appears the drives/folder locations are named all the same (it is a network shared drive)
The Source_File = line is where I am getting the error.
Any ideas as to what could be the problem would be greatly appreciated.
The Source_File = line is where I am getting the error.
Any ideas as to what could be the problem would be greatly appreciated.
VBA Code:
Private Sub Transfer_CC()
Dim FSO
Dim Source_File As String
Dim Source_Folder As String
Dim Destination_Folder As String
Source_File = Workbooks("Customer Concern - Warranty Request Log").Sheets("List").Range("M1").Value & ".xls"
Source_Folder = "X:\QUALITY\Quality Assurance\Group\Corrective Actions\Customer Concerns - Corrective Action\"
Destination_Folder = Workbooks("Customer Concern - Warranty Request Log").Sheets("List").Range("I5")
Set FSO = CreateObject("Scripting.FileSystemObject")
FSO.CopyFile (Source_Folder & Source_File), Destination_Folder, True