Article ID: 171388 - View products that this article applies to.
This article was previously published under Q171388
The Microsoft Visual Basic Editor allows you to comment and uncomment blocks of code at a time. This command is not available by default; to use this feature you must add the Comment Block and Uncomment block commands to a menu. This article describes how to add the two commands to the Visual Basic Editor standard menu and how to comment code.
Adding the Comment Block and Uncomment Block CommandsTo add the commands to the standard menu in the Visual Basic Editor, follow these steps:
Using the Comment Block and Uncomment Block CommandsTo comment a block of code, follow these steps:
the Uncomment Block command removes the apostrophe (') at the beginning of the line.
In the following comment
the first time you click Uncomment Block, the leftmost apostrophe is removed. The second time you click Uncomment Block for this comment, the remaining apostrophe is removed.
Article ID: 171388 - Last Review: January 20, 2007 - Revision: 2.3
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.