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 default:
Step 2, Select Text:
Select the block of text you would like to turn into comments:
Click on the Comment Block button on the Edit toolbar:
Uncommenting can also be done in a similar manner by clicking the Uncomment Block button on the edit toolbar:
- For more methods to comment code, check out our overview guide.
- VBA Editor, Indent and Outdent Blocks of Code
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