¥»©«³Ì«á¥Ñ av8d ©ó 2012-5-21 14:21 ½s¿è
Private Sub CommandButton1_Click()
'¸ê®Æ«ØÀÉ
Y = (Year(TextBoxM))
M = (Month(TextBoxM))
D = (Day(TextBoxM))
N1 = TextBoxN1
N2 = TextBoxN2
N3 = Round(N1 / N2)
For i = (M + 1) To (M + N2)
If i > 12 Then
Sheets("Data").Cells(Rows.Count, "A").End(3)(2, 1).Resize(1, 5) = Array(DateSerial(Y & "/" & (i - 12) & "/" & D), "¤À´Á¥I´Ú", N3, TextBox1, TextBox2)
Else
Sheets("Data").Cells(Rows.Count, "A").End(3)(2, 1).Resize(1, 5) = Array(DateSerial(Y & "/" & i & "/" & D), "¤À´Á¥I´Ú", N3, TextBox1, TextBox2)
End If
Next
Unload Me
End Sub
¨Ï¥Îªº³nÅé¬O EXCEL2010
ªþ¤W ªþ¥ó
Àx»WºÞ²z¨t²Î.rar (25.49 KB)
|