Does VBA contain a comment block syntax? [duplicate]
问题 This question already has answers here : How to comment and uncomment blocks of code in the Office VBA Editor (9 answers) Closed 3 years ago . In VBA is there a short way to comment out a block of code the same way java uses /*...*/ ? 回答1: 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