新建Setcbar=CommandBars("File").Controls("新建(&N)")cbar.Enabled=Falsecbar.OnAction="NullMethod"cbar.ShortcutText=""'cbar.Reset'菜單>打開Setcbar=Comma" />

欧美三区_成人在线免费观看视频_欧美极品少妇xxxxⅹ免费视频_a级毛片免费播放_鲁一鲁中文字幕久久_亚洲一级特黄

VBA訪問word菜單

系統 1851 0

?

Sub ?SetCommandbar()
????????????
'
???????? ' ?SetCommandbar?Macro
???????? ' ?宏在?2007-2-1?由?創建
???????? '
???????? ' 菜單
???????? ' 菜單
???????? Dim ?cbar?? As ?CommandBarButton

??????????????????????
' 菜單>新建
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 新建(&N) " )
????????????cbar.Enabled?
= ? False
???????????????????????????????cbar.OnAction?
= ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 菜單>打開
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 打開(&O) " )
????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 菜單>保存
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 保存(&S) " )
????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 菜單>另存為
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 另存為(&A) " )
????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 命令>新建
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( 1 )
????????????cbar.Visible?
= ? True
???????????????????????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 命令>打開
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( " 打開(&O) " )
????????????cbar.Visible?
= ? True
???????????????????????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset
???????? ' 命令>保存
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( " 保存(&S) " )
????????????cbar.Visible?
= ? True
???????????????????????????????cbar.Enabled?
= ? False ? '
????????cbar.OnAction? = ? " NullMethod "
????????cbar.ShortcutText?
= ? ""
????????
' cbar.Reset


????????
' CommandBars("Standard").Controls(1).ShortcutText?=?""



????????
' 快捷鍵Ctrl+N?和Ctrl+O
???????? ' Set?cbar?=?CommandBars.ActionControl
???????? Set ?myControl? = ?Application.CommandBars.FindControl?_
????????????????????????????????????????????????????????????????(Type:
= msoControlPopup,?Visible: = True )



????????
End?Sub

????????????
Private ? Sub ?NullMethod()

????????????????????????????
End?Sub

????????????????????????????????
Sub ?myreset()
????????????????????????????????????
' 菜單
???????? Dim ?cbar?? As ?CommandBarButton

??????????????????????
' 菜單>新建
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 新建(&N) " )
????????????cbar.Reset
????????????????
' 菜單>打開
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 打開(&O) " )
????????????cbar.Reset
????????????????
' 菜單>保存
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 保存(&S) " )
????????????cbar.Reset
????????????????
' 菜單>另存為
???????? Set ?cbar? = ?CommandBars( " File " ).Controls( " 另存為(&A) " )
????????????cbar.Reset
????????????????
' 命令>新建
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( 1 )
????????????cbar.Reset
????????????????
' 命令>打開
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( " 打開(&O) " )
????????????cbar.Reset
????????????????
' 命令>保存
???????? Set ?cbar? = ?CommandBars( " Standard " ).Controls( " 保存(&S) " )
????????????cbar.Reset
????????????????
End?Sub
????????????????????????
Sub ?aaa()

????????????????????????????????
' ?aaa?Macro
???????? ' ?宏在?2007-2-2?由?張文璋?創建
???????? '

????????
End?Sub

VBA訪問word菜單


更多文章、技術交流、商務合作、聯系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號聯系: 360901061

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點擊下面給點支持吧,站長非常感激您!手機微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對您有幫助就好】

您的支持是博主寫作最大的動力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長會非常 感謝您的哦!!!

發表我的評論
最新評論 總共0條評論
主站蜘蛛池模板: 亚洲成人精品久久久 | 国产精品激情福利视频 | 成人性生交大片 | 91国视频在线 | 国产日韩欧美中文 | www.国产 | 色125综合网 | 欧美成人伊人十综合色 | 99热久 | 日韩一区二区在线视频 | 日本高清免费不卡在线 | 欧美影院| 久久久久久免费一区二区三区 | 美女国内精品自产拍在线播放 | 人人草视频在线 | 久草在线视频精品 | 人人爱天天做夜夜爽 | 999精品视频在线观看 | 国产成人精品日本亚洲11 | 可米影院| 中国免费一级毛片 | 成人久久18免费软件 | 国产成人小视频 | 亚洲国产日韩欧美综合久久 | 精品视频一区二区观看 | 国产色司机在线视频免费观看 | 婷婷综合色 | 国产三级做爰在线观看视频 | 热re91久久精品国产99热 | 嫩草影院地址一二三网址 | 亚洲一区二区久久 | 久久精品视频在线看99 | 九色九色九色在线综合888 | 国产精品v在线播放观看 | 999久久久久久久久6666 | 亚洲码欧美码一区二区三区 | 亚洲性生活免费视频 | 久草在线新免久费观看视频 | 99精品视频在线 | 亚洲福利 | 亚洲视频2020|