Month wise Days - Dates

     

    Private Sub CommandButton1_Click()
    Dim mon As Integer
    j = 1
    m = 2
    For i = 1 To 12
    Cells(1, i).Value = MonthName(i, True)
    r = Day(DateSerial(2016, j + i, 0))
    For p = 1 To r
    Cells(m, i).Value = DateSerial(2016, i, p)
    m = m + 1
    Columns(i).AutoFit
    Next
    m = 2
    Next
    End Sub

     

    Download The Workbook