你新建一个空白文档,运行以下宏,将结果保存在文档中上传该文档,我查看一下。 '* +++++++++++++++++++++++++++++++++++++++ '* Created By I Love You_Word!@ExcelHome 2005-1-14 12:22:52 '仅测试于System: Windows NT Word: 10.0 Language: 2052 '^The Code CopyIn [标准模块-模块1]^' '* -------------------------------------------------------------------------- Sub GetComName()
Dim i As CommandBar, strCom As String, SelCom As String
On Error Resume Next
For Each i In Application.CommandBars
strCom = i.Name & vbCrLf
SelCom = SelCom & strCom
Next
Selection.InsertAfter SelCom
End Sub
'----------------------
|