Y = Year(TextBox1)
M = Month(TextBox1)
D = Day(TextBox1)
If OptionButton1 = True Then
OB1 = "收入"
Else
OB1 = "支出"
End If
If OptionButton4 = True Then
OB4 = "薪資"
Else
OB4 = TextBox3
End If
Sheets("Data").Cells(Rows.Count, "A").End(3)(2, 1).Resize(1, 5) = Array(DateSerial(Y, M, D), OB1, TextBox2, OB4, TextBox4)