If I run this...
For i = -1 To -12 Step -1
Debug.Print CStr(Month(DateAdd("m", i, Now))) & "/";
CStr(Year(DateAdd("m", i, Now)))
Next i
I get this...
5/2005
4/2005
3/2005
2/2005
1/2005
12/2004
11/2004
10/2004
9/2004
8/2004
7/2004
6/2004
which is exactly what I want, except for one thing -
I would like to see month abbrev replace the numbers.
So, I run this...
For i = -1 To -12 Step -1
Debug.Print Format(Month(DateAdd("m", i, Now)), "mmm") & "/";
CStr(Year(DateAdd("m", i, Now)))
Next i
But, unfortunately, it returns this...
Jan/2005
Jan/2005
Jan/2005
Jan/2005
Dec/2005
Jan/2004
Jan/2004
Jan/2004
Jan/2004
Jan/2004
Jan/2004
Jan/2004
Am I missing something here?