(This is part of a much larger macro, I can provide more if necessary)
When I use the following function and Column H is empty below H1, the word TEMP is being copied to cell F1 and overwriting my header. I assume this is because Row 1 is being flagged as my LastRow. When there is data in H2 or below I do not have this bug.

'Input "TEMP" into Plate field.
   lastPlate = Cells(Rows.Count, "H").End(xlUp).Row
   Range("F2").Select
   ActiveCell.FormulaR1C1 = "TEMP"
    Selection.AutoFill Destination:=Range("F2:F" & lastPlate), Type:=xlFillDefault
How would I go about making it do NOTHING if H2 is empty? I'm thinking an If statement, but I'm yet to do any in VBA. Would this work? H1 is my header, "VIN". (I'm learning!)

lastPlate = Cells(Rows.Count, "H").End(xlUp).Row
   If lastPlate = "VIN" Then
       lastPlate = "VIN"
     Else
       Range("F2").Select
       ActiveCell.FormulaR1C1 = "TEMP"
         Selection.AutoFill Destination:=Range("F2:F" & lastPlate), Type:=xlFillDefault
   End If