Hi,
I want some code to insert last months name into a cell.
I'm using this code:
WS.Range("G2") = MonthName(Month(Date) - 1)
But this doesn't work if the current month is january or if I put something like: WS.Range("G2") = MonthName(Month(Date) - 8).
Is there an alternative way?
Thanks.