Tuesday, June 17, 2014

How to comment and uncomment blocks of code in the Office VBA Editor

Good to know.

http://stackoverflow.com/questions/12933279/how-to-comment-and-uncomment-blocks-of-code-in-the-office-vba-editor

One way to quickly comment and uncomment blocks of code is to add the Comment Block and Uncomment Block buttons to your toolbar.

Go to: View -> Toolbars -> Customize




Next, go to the Commands tab and then the Edit category:


Select the Comment Block and drag to the toolbar:





Do the same for the Uncomment Block.


No comments:

Post a Comment