[vba]Sub addsheets()
Dim lastday int, ws As worksheet, mydate As Date,j As int, i As int,checkday As Date
mydate = dateserial(year(date),month(date),1)
lastday = dateserial(year(dateadd("m",1,mydate),month(dateadd("m",1,0)
shtct = Thisworkbook.sheets.count
j=1
For i = 1 To lastday
'increment the date by 1 day using i
checkdate = dateserial(year(mydate),month(mydate),i)
'if it is sunday, do the below, otherwise, it is a weekday
If Weekday(checkdate) = 7 Then
Sheets.Add After: = Sheets.Count
ActiveWorksheet.Name= "WEEK " & j
j= j+ 1
Else ''if weekday do the below
Sheets.Add After: = Sheets.Count
ActiveWorksheet.Name = format(checkdate,"dd-mm-yy")
End If
'once done add the month end sheet
Sheets.Add After: = Sheets.Count
ActiveWorksheet.Name = format(checkdate,"MMM") & " MONTH END"
End Sub[/vba]