I am trying to copy a range of data from one sheet to another. the range of data being copied is always a different length depending on the date selected, also the copied data has to be pasted to the bottom of the master copy list thereby creating a full list for the user to search for specific data. I keep getting the error below when i try to run the code.
'Run-time error '1004' Application-defined or Object defined error
Sub P_8_move()'Dim newstart As Integer
'Dim length As Integer
'Dim newend As Integer
newstart = Worksheets("MASTER TIF LISTS").Range("b1").Value
length = Worksheets("MASTER TIF LISTS").Range("b2").Value
newend = Worksheets("MASTER TIF LISTS").Range("b3").Value
Worksheets("MASTER TIF LISTS").Range(Cells(4, newstart), Cells(newend, 13)).Value = _
Worksheets("Period 8 Data").Range(Cells(4, 4), Cells(newend, 11)).Value
Worksheets("period 8 data").Range("F4:H33").ClearContents
Worksheets("period 8 data").Range("J4:K33").ClearContents
'Run-time error '1004' Application-defined or Object defined error
Sub P_8_move()'Dim newstart As Integer
'Dim length As Integer
'Dim newend As Integer
newstart = Worksheets("MASTER TIF LISTS").Range("b1").Value
length = Worksheets("MASTER TIF LISTS").Range("b2").Value
newend = Worksheets("MASTER TIF LISTS").Range("b3").Value
Worksheets("MASTER TIF LISTS").Range(Cells(4, newstart), Cells(newend, 13)).Value = _
Worksheets("Period 8 Data").Range(Cells(4, 4), Cells(newend, 11)).Value
Worksheets("period 8 data").Range("F4:H33").ClearContents
Worksheets("period 8 data").Range("J4:K33").ClearContents