Greetings,
I have put together a macro (recorded) that preforms a count in a column. The macro works great if the numbers of rows do not change or the number increases however, if the number of rows shrinks by 1 then it doesn't work.
Do you have any suggestions on how I can fix this?
Thanks
Eric
I have put together a macro (recorded) that preforms a count in a column. The macro works great if the numbers of rows do not change or the number increases however, if the number of rows shrinks by 1 then it doesn't work.
Do you have any suggestions on how I can fix this?
Thanks
Eric
Code:
'Grey
ActiveCell.FormulaR1C1 = "=cgrey(R[-52]C:R[-1]C)"
With Selection
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlBottom
End With
Selection.Font.Bold = True
ActiveCell.Offset(1, 0).Activate