- 帖子
- 1572
- 主題
- 16
- 精華
- 2
- 積分
- 1521
- 點名
- 0
- 作業系統
- xp
- 軟體版本
- office 2003
- 閱讀權限
- 150
- 性別
- 男
- 註冊時間
- 2010-5-1
- 最後登錄
- 2016-1-13

|
工作表模組
Private Sub CommandButton1_Click()
Static x
x = x + 1
'你要做的工作
If x = 3 Then CommandButton1.Enabled = 0
End Sub
---------------------------------------
This WorkBook模組
Private Sub Workbook_Open()
Sheet1.CommandButton1.Enabled = 1
End Sub |
|