返回列表 上一主題 發帖

[發問] VBA 自動插入至空白格方式

回復 4# lichang

試試!
  1. Private Sub CommandButton1_Click()
  2. Dim Col As Integer
  3. Col = Sheets("工作表1").[a1].End(xlToRight).Column + 1
  4. Cells(1, Col) = TextBox1.Value
  5. Cells(2, Col) = TextBox2.Value
  6. Cells(3, Col) = TextBox3.Value
  7. End Sub
複製代碼

TOP

        靜思自在 : 小事不做、大事難成。
返回列表 上一主題