OFF: How to Add and Use the Comment Block CommandLast reviewed: February 5, 1998Article ID: Q171388 |
The information in this article applies to:
SUMMARYThe 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.
MORE INFORMATION
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:
' If strName = "MyName" Then ' Check if strName is equal to MyName.the Uncomment Block command removes the apostrophe (') at the beginning of the line. In the following comment
' ' This is a 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.
|
Additional query words: 8.00 ppt8 vba vbe blocks macword macxl macppt
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |