I'm writing a code and have particular problem with reading data ranges from different sheets. The problematic partition of the code is:
Dim INP, TMP as worksheet
Set INP = Sheets("Input")
Set TMP = Sheets("Temp")
TMP.Range(Cells(1,1),Cells(1,3)).Value = INP.Range(Cells(1,1),Cells(1,3)).Value
Which, instead of writing the values from the range on input sheet to the range on Temp sheet, gives an
error 1004 (Method range of worksheet failed).
Can you guys help me solve this?