VBA是否包含注释块语法? [英] Does VBA contain a comment block syntax?
本文介绍了VBA是否包含注释块语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在VBA中,有一种简短的方法可以注释掉一段代码,就像Java使用 /*...*/
一样?
In VBA is there a short way to comment out a block of code the same way java uses /*...*/
?
推荐答案
尽管没有语法,但仍可以使用内置的块注释按钮来关闭:
Although there isn't a syntax, you can still get close by using the built-in block comment buttons:
如果尚未查看编辑工具栏,请右键单击该工具栏并启用编辑工具栏:
If you're not viewing the Edit toolbar already, right-click on the toolbar and enable the Edit toolbar:
然后,选择一个代码块,然后点击评论栏按钮;或已被注释掉,请使用取消注释块按钮:
Then, select a block of code and hit the "Comment Block" button; or if it's already commented out, use the "Uncomment Block" button:
快速简便!
这篇关于VBA是否包含注释块语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文