Skip to content

VB IDE Tips and Tricks

lucas-v edited this page Sep 12, 2013 · 3 revisions

Block commenting and uncommenting

It is not uncommon for VBA programmers in their early times to do the commenting and uncommenting manually by adding and removing ' at the beginning of lines. This can be rather annoying when there are a lot of lines.

Actually, the VB IDE has a block commenting and uncommenting feature. It is just hidden a little bit.

  1. Go in View -> Toolbars -> Customize
  2. In "Categories", select "Edit".
  3. Scroll down a bit. You will see the "Comment Block" and "Uncomment Block" buttons.
  4. Drag and drop them among their fellow buttons on the toolbar.