Hi there

I'm wanted to sum all values between two variables which I have set as firstrow and last row. I have been playing around with a line of code to do this but cannot figure it out:

I know the code below is incorrect but I can't see how I would accomplish what I want:

ActiveCell.FormulaR1C1 = Sum(Cells(firstrow, "F"), Cells(lastrow, "F"))

Any ideas would be great