- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
2#
發表於 2013-5-7 15:50
| 只看該作者
回復 1# mygod0403 - Sub Ex()
- Dim C As CommandBar, W As CommandBarControl, i As Integer
- i = 1
- For Each C In Application.CommandBars
- If C.ID = 1 Then '自訂工具列的 ID = 1
- Cells(i, "A") = C.Name
- For Each W In C.Controls
- Cells(i, "B") = W.OnAction
- i = i + 1
- Next
- i = i + 1
- End If
- Next
- End Sub
複製代碼 |
|