VBA Editor, Comment and Uncomment Blocks of Code

In this article I will explain how you can comment and uncomment blocks of code in the VBA editor.


Step 1, Enable the Edit Toolbar:

The first step would be enable the Edit Toolbar. This toolbar is not enabled by defaultEdit Toolbar:


Step 2, Select Text:

Select the block of text you would like to turn into comments:
Select Text to Comment


Step 3:

Click on the Comment Block button on the Edit toolbar:
Comment Block


Result:

result


Uncomment Block:

Uncommenting can also be done in a similar manner by clicking the Uncomment Block button on the edit toolbar:
Uncomment Block

See also:

If you need assistance with your code, or you are looking for a VBA programmer to hire feel free to contact me. Also please visit my website www.software-solutions-online.com

Leave a Reply

Your email address will not be published. Required fields are marked *