hong

导航

随笔分类 -  其它

VBA命令按钮操作
摘要:1、添加一个命令按钮SubAddCommandBar()'命令DimcbarAsCommandBarButtonSetcbar=CommandBars("Standard").Controls("临时按钮")IfNotcbarIsNothingThenExitSubEndIfWithCommandBars("Standard").Protection=msoBarNoProtectionWith.... 阅读全文

posted @ 2007-02-07 14:32 hong 阅读(2703) 评论(0) 推荐(0)

VBA访问word菜单
摘要:SubSetCommandbar()''SetCommandbarMacro'宏在2007-2-1由创建''菜单'菜单DimcbarAsCommandBarButton'菜单>新建Setcbar=CommandBars("File").Controls("新建(&N)")cbar.Enabled=Falsecbar.OnAction="NullMethod"cbar.Shortcut... 阅读全文

posted @ 2007-02-02 13:16 hong 阅读(883) 评论(2) 推荐(0)