I cannot get this to work, only cell B2 has the formula and it will not copy down the row to the last row with data. What have I done wrong?
ActiveCell.FormulaR1C1 = "=R[-1]C+1"
Range("B2:B" & Range("B" & Rows.Count).End(xlUp).Row).AutoFill Destination:=Range("B2:B" & Range("B" & Rows.Count).End(xlUp).Row), Type:=xlFillCopy
ActiveCell.FormulaR1C1 = "=R[-1]C+1"
Range("B2:B" & Range("B" & Rows.Count).End(xlUp).Row).AutoFill Destination:=Range("B2:B" & Range("B" & Rows.Count).End(xlUp).Row), Type:=xlFillCopy