- 帖子
- 4901
- 主題
- 44
- 精華
- 24
- 積分
- 4916
- 點名
- 152
- 作業系統
- Windows 7
- 軟體版本
- Office 20xx
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台北
- 註冊時間
- 2010-4-30
- 最後登錄
- 2025-6-24
               
|
2#
發表於 2010-7-18 23:18
| 只看該作者
回復 1# sping
thisworkbook模組- Private Sub Workbook_WindowActivate(ByVal Wn As Window)
- Dim sk As Office.CommandBarControl
- For Each sk In Application.CommandBars.FindControls(ID:=847)
- sk.Enabled = False
- Next sk
- End Sub
- Private Sub Workbook_WindowDeactivate(ByVal Wn As Window)
- Dim sk As Office.CommandBarControl
- For Each sk In Application.CommandBars.FindControls(ID:=847)
- sk.Enabled = True
- Next sk
- End Sub
複製代碼 |
|