如何评价和code在Office VBA编辑器取消注释块编辑器、注释、评价、Office

2023-09-08 10:55:09 作者:囚。

在办公室的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.