Hi,
I recorded macro to automatically get month end.
I want to autofill to last used cell in column G which will vary.
Code copies down and formats date but also copies "31/01/1990" down to row 2000
Any way to do this correctlyHTML Code:Sub Macro9() Range("G12").Select ActiveCell.FormulaR1C1 = "=EOMONTH(RC[-5],0)" Range("G12").Select Selection.AutoFill Destination:=Range("G12:G2000") Columns("G:G").Select Selection.NumberFormat = "m/d/yyyy" Range("H12").Select End Sub
Thanks in advance
Jon