工作表模組
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作者: yueh0720 時間: 2010-10-26 10:12