Sub 菜单中英文名称()
Dim Cbar As CommandBar
Dim NewWS As Worksheet
Dim RNum As Integer
RNum = 1
Set NewWS = Worksheets.Add
On Error Resume Next
ActiveSheet.Name = "菜单中英文名称"
On Error GoTo 0
For Each Cbar In Application.CommandBars
NewWS.Cells(RNum, "A").Value = Cbar.Name
NewWS.Cells(RNum, "B").Value = Cbar.NameLocal
RNum = RNum + 1
Next Cbar
NewWS.Columns.AutoFit
End Sub作者: b4069588 時間: 2010-9-2 16:36