User talk:Amorbot
加话题外观
Sub writeMonth()
- Open "C:\the-months.htm" For Output As #1
For mth = 1 To 12
- Print #1, "! style=""font-size: larger; text-align: left"" | [[" + CStr(mth) + "月]]"
For dayz = 1 To numberDays(mth)
- Print #1, "| [[" + CStr(mth) + "月" + CStr(dayz) + "2日|" + CStr(dayz) + "]]"
Next
End Sub
Function numberDays(mthr)
- If mthr = 2 Then
- numberDays = 29
- If mthr = 4 Or mthr = 6 Or mthr = 9 Or mthr = 11 Then
- numberDays = 30
- numberDays = 31
End Function