Have tried to use a code posted on this site. I keep getting a " Runtime Error 40036". Code as listed below
Sub CopyThem()
NextRow = Worksheets("Numbers").Range("B65536").End(xlUp).Row + 1
Worksheets("Numbers").Cells(NextRow, 2).Resize(1, 2).Value = Array( _
Worksheets("data").Range("f11").Value, _
Worksheets("data").Range("f12").Value)
End Sub
I am trying to copy data from sheet "Numbers" to sheet "Data"
When I try the code on a blank spread sheet it works fine, but when I try and run it in the existing spreadsheet with existing data I get the error code.
Any Ideas and one ?
Sub CopyThem()
NextRow = Worksheets("Numbers").Range("B65536").End(xlUp).Row + 1
Worksheets("Numbers").Cells(NextRow, 2).Resize(1, 2).Value = Array( _
Worksheets("data").Range("f11").Value, _
Worksheets("data").Range("f12").Value)
End Sub
I am trying to copy data from sheet "Numbers" to sheet "Data"
When I try the code on a blank spread sheet it works fine, but when I try and run it in the existing spreadsheet with existing data I get the error code.
Any Ideas and one ?