如何评价和code在Office VBA编辑器取消注释块 [英] How to comment and uncomment blocks of code in the Office VBA Editor
问题描述
在办公室的VBA编辑器( ALT 骨节病> + <大骨节病> F11 骨节病>),你对此有何评论或取消第code块?
In the VBA editor of Office (ALT + F11), how do you comment or uncomment a block of code?
推荐答案
在VBA编辑器,转到查看
,工具栏
,自定义...
或右键单击工具栏上,选择自定义...
In the VBA editor, go to View
, Toolbars
, Customise...
or right click on the tool bar and select Customise...
在命令
设置页,选择左侧的修改
菜单。
Under the Commands
tab, select the Edit
menu on the left.
然后大约三分之二的一路下跌有两个图标,注释块
和取消注释块
。
Then approximately two thirds of the way down there's two icons, Comment Block
and Uncomment Block
.
拖放这些到您的工具栏,然后你可以很方便地突出code块,并注释掉并取消了按一下按钮!
Drag and drop these onto your toolbar and then you have easy access to highlight a block of code, and comment it out and uncomment with the click of a button!
请参阅 GauravSingh的回答,如果你想分配键盘快捷键。
See GauravSingh's answer if you want to assign keyboard shortcuts.
这篇关于如何评价和code在Office VBA编辑器取消注释块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!