I am trying to do a 'countdown' for the number of items in a list in VBA. I use (cell DA4), the below counta formula and would like the do loop under that to move down one cell (offset formula) and put in the formula (cell above -1). I want this loop to end when the activecells value = 2.
ActiveCell.FormulaR1C1 = "=COUNTA(RC[-103]:R[13]C[-103])+1"
Do Until ActiveCell.Value = 2
ActiveCell.Offset(1, 0) = "=R[-1]C-1"
Loop
Unfortunately, it isn't acting like I thought it would. Any ideas why?
Thanks!
ActiveCell.FormulaR1C1 = "=COUNTA(RC[-103]:R[13]C[-103])+1"
Do Until ActiveCell.Value = 2
ActiveCell.Offset(1, 0) = "=R[-1]C-1"
Loop
Unfortunately, it isn't acting like I thought it would. Any ideas why?
Thanks!