Hi,
VBA.Date() is a function that returns today's date.
VBA.Month() is a function that returns the month (as an integer) of a given date, so VBA.Month(VBA.Date) would return 2.
VBA.MonthName() is a function that returns a string indicating the specified month, so VBA.MonthName(VBA.Month(VBA.Date)) would return "February" on my computer.
Hopefully that makes it clearer how we get the two things you need:
The next thing you need to think about is duplicate worksheet names. If someone generates the new worksheet twice in the same month, or after 12 months have passed, you will get an error?
Bookmarks