Hi, I wonder whether someone may be able to help me please.
I'm using the snippet of code below to, amongst cell formatting, insert the current month to a spreadsheet cell in the format 'mmm yy'.
With Range("B3")
.Value = Format(Date - 1, "1 mmm yy")
.NumberFormat = "mmm yy"
.HorizontalAlignment = xlCenter
.Interior.ColorIndex = 37
With .Font
.Name = "Lucida Sans"
.Bold = True
.Size = 10
End With
End With
What I'd like to do is chage this so the month which is inserted is the 'Current Month -'.
I've tried changing this line:
.Value = Format(Date, "1 mmm yy")
to
.Value = Format(Date - 1, "1 mmm yy")
but unfortunately this doesn't work.
I just wondered whether someone may be able to look at thsi please and let me know where I'm going wrong.
Many thanks and kind regards
Bookmarks