- 帖子
- 91
- 主題
- 5
- 精華
- 0
- 積分
- 130
- 點名
- 2
- 作業系統
- Win10
- 軟體版本
- Office 2010
- 閱讀權限
- 20
- 性別
- 男
- 註冊時間
- 2016-5-14
- 最後登錄
- 2026-6-21
|
回復 2# spensers
參考看看
不確定是否是你要的- Private Sub B1_Click()
- Cells(4, "A") = myA.Text
- Cells(5, "B") = myB.Text
- Cells(6, "B") = myC.Text
- Cells(8, "B") = myD.Text
- Cells(9, "B") = myE.Text
- Cells(10, "B") = myF.Text
- Cells(9, "F") = myG.Text
- Cells(10, "F") = myH.Text
- If Range("B24") <> "" Then
- MsgBox "已填滿12項"
- Else
- r = Range("B24").End(xlUp).Row + 1
- Cells(r, "B") = myI.Text
- Cells(r, "C") = myJ.Text
- Cells(r, "D") = myK.Text
- Cells(r, "E") = myL.Text
- Cells(r, "G") = myM.Text
- End If
- End Sub
複製代碼 |
|