返回列表 上一主題 發帖

控制鈕輸入後換列在輸入?

試試+1
  1. Private Sub CommandButton1_Click()
  2.     x = Sheets("BOB").[B65536].End(xlUp).Row + 1
  3.     Cells(x, 2) = TextBox1.Text
  4.     Cells(x, 3) = TextBox2.Text
  5.     Cells(x, 4) = TextBox3.Text
  6.     Cells(x, 5) = TextBox4.Text
  7.     TextBox1.Text = ""
  8.     TextBox2.Text = ""
  9.     TextBox3.Text = ""
  10.     TextBox4.Text = ""
  11.     TextBox1.SetFocus
  12. End Sub
複製代碼

TOP

        靜思自在 : 原諒別人就是善待自己。
返回列表 上一主題