Hi
I have set up a macro to copy cell C3 from the 'Exports' tab to the next available cell in row F on the 'Revenue' tab starting in column 7. When I use it for the first and second times I get 'Run-time error 1004' however once there are at least two entries in the the receiving sheet (F7 and F8) it will work correctly. I'd really appreciate any help - I've been struggling with this for over a week.
Many thanks
Simon
Sub Import()
' Copies Period Number to next available column on Revenue sheet
Worksheets("Exports").Activate
ActiveSheet.Range("C3").Copy
Worksheets("Revenue").Activate
Range("F7").End(xlToRight).Offset(, 1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub
I have set up a macro to copy cell C3 from the 'Exports' tab to the next available cell in row F on the 'Revenue' tab starting in column 7. When I use it for the first and second times I get 'Run-time error 1004' however once there are at least two entries in the the receiving sheet (F7 and F8) it will work correctly. I'd really appreciate any help - I've been struggling with this for over a week.
Many thanks
Simon
Sub Import()
' Copies Period Number to next available column on Revenue sheet
Worksheets("Exports").Activate
ActiveSheet.Range("C3").Copy
Worksheets("Revenue").Activate
Range("F7").End(xlToRight).Offset(, 1).PasteSpecial xlPasteValues
Application.CutCopyMode = False
End Sub