Reputation: 149
so this returns the next month:
=MonthName(Month(DateAdd("m", +1, CDate(Today))))
So if its November, this returns December. That is great. However, I need to return month - year one month ahead.
So if its November i want it to return December 2013. If its December 2013 I want it to return January 2014. Help?
Upvotes: 1
Views: 5471
Reputation: 1476
=Format(DateAdd("m", 1, CDate(Today)),"mmm - yyyy")
Read the documentation I've linked in order to learn more about the 'Format' function. Basically, this function takes in:
It then follows a set of rules, parsing the data into the given format. There are a handful of other formats that you can specify. These are explained in the documentation.
SOURCE: VBA Experience, documentation
Upvotes: 2