vba check how many days in a month code example Example: find days in month vba DateTime.DaysInMonth(year, month)