如何评价和code在Office VBA编辑器取消注释块 [英] How to comment and uncomment blocks of code in the Office VBA Editor

查看:507
本文介绍了如何评价和code在Office VBA编辑器取消注释块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆