I have the code below, every time I run it I want it to add 1 to the count. So lets say I start with a count of 10, after I run it I want it to count 10 then add one so it autofills the formula 11 times instead of 10. Then next time i run it it will count 11 then add one so it autofills the formula 12 times, etc....
Code:
Sub Macro2()
With Sheets("balances").Activate
Dim lastrow As Long
lastrow = Cells(Rows.count, 1).End(xlUp).Row
Range("b6").formula = "=eomonth(b5,1)"
Range("b6").AutoFill Destination:=Range("b6:b" & lastrow)
End With
End Sub