MonthName returns the text string associated with a month number:
Sub MonthNameExample() Debug.Print MonthName(7) 'Returns July Debug.Print MonthName(11) 'Returns November End Sub
1. | MonthName(month) returns A String containing the name of the month represented by month | ||
2. | MonthName(Month(Date)) | ||
3. | MonthName(Month(Date), True) |