userform設計介面
Userform1程式碼
Private Sub CommandButton1_Click() nRow = Cells(ActiveSheet.Rows.Count, 1).End(xlUp).Row + 1 Cells(nRow, 1) = TextBox1.Text Cells(nRow, 2) = TextBox2.Text Cells(nRow, 3) = TextBox3.Text Cells(nRow, 4) = Time()End Sub工作表畫面