I created a simply macro that will adjust the headings of a group of cells as follows.
But if I add a row/column to the sheet, it will then of course attempt to place the headings in the wrong cells.
I have now given that group of cells/range a Name of "AR_Buckets". But I'm not certain how to modify the macro to ensure it always places the information in the correct place.
Can anyone help some?
Sub AR_InvoiceDate()
Range("D8").Select
ActiveCell.FormulaR1C1 = "'1-30"
Range("E8").Select
ActiveCell.FormulaR1C1 = "'31-60"
Range("F8").Select
ActiveCell.FormulaR1C1 = "'61-90"
Range("G8").Select
ActiveCell.FormulaR1C1 = "'91-120"
Range("H8").Select
ActiveCell.FormulaR1C1 = "'Over 120"
Range("H9").Select
End Sub
Bookmarks