Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1950|回复: 1

[已解决]有没有英语名称对照表?

[复制链接]
发表于 2015-11-29 20:53 | 显示全部楼层 |阅读模式
本帖最后由 dsfada 于 2015-12-2 12:15 编辑

CommandBars("Worksheet Menu Bar")里Worksheet Menu Bar代表菜单栏,有没有CommandBars后面括号所有命令对照表?
最佳答案
2015-11-30 09:44
Sub AllCommandBar()
    Dim c1, c2, c3, c4, c5, s
    On Error Resume Next
    Cells.ClearContents
    For Each c1 In CommandBars
        For Each c2 In c1.Controls
            For Each c3 In c2.Controls
                For Each c4 In c3.Controls
                    For Each c5 In c4.Controls
                        s = s + 1
                        Cells(s, 1) = c1.NameLocal
                        Cells(s, 2) = c2.Caption
                        Cells(s, 3) = c3.Caption
                        Cells(s, 4) = c4.Caption
                        Cells(s, 5) = c5.Caption
                    Next c5
                Next c4
            Next c3
        Next c2
    Next c1
End Sub

这样吗
发表于 2015-11-30 09:44 | 显示全部楼层    本楼为最佳答案   
Sub AllCommandBar()
    Dim c1, c2, c3, c4, c5, s
    On Error Resume Next
    Cells.ClearContents
    For Each c1 In CommandBars
        For Each c2 In c1.Controls
            For Each c3 In c2.Controls
                For Each c4 In c3.Controls
                    For Each c5 In c4.Controls
                        s = s + 1
                        Cells(s, 1) = c1.NameLocal
                        Cells(s, 2) = c2.Caption
                        Cells(s, 3) = c3.Caption
                        Cells(s, 4) = c4.Caption
                        Cells(s, 5) = c5.Caption
                    Next c5
                Next c4
            Next c3
        Next c2
    Next c1
End Sub

这样吗
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-4-27 02:27 , Processed in 0.308194 second(s), 11 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表