I have the following code , but cannot get message "subscript out of range
It would be appreciated if someone could kindly assist me
Code:
Const C As String = 2018.2019
sub Copy_Data
Workbooks("Sales Comms." & d & ".xls").ActiveSheet.Range("D2").PasteSpecial Paste:=xlPasteValues
Workbooks("Sales Comms." & d & ".xls").ActiveSheet.Range("D2").PasteSpecial Paste:=xlPasteValues
end sub
It would be appreciated if someone could kindly assist me