VBA Editor Question

  • Thread starter Thread starter Wavequation
  • Start date Start date
W

Wavequation

Is there an easy way to comment out blocks of code, without having to do it
line by line?
 
Is there an easy way to comment out blocks of code, without having to do it
line by line?

On the Edit toolbar there is a comment block button. It has a black
line, two blue lines and then two more black lines. The un-comment is
next to it, and has the same icon with an arrow on it.

Highlight your block of code and click that button.

HTH,
Chris M.
 
Hi,
there are such buttons, but they are not on the toolbar by default.
Right-click on VBA toolbar, click Customize, in Commands tab select Edit
category and in Commands listbox find Command block and Uncomment block
commands. Drag both to your toolbar - and here you are

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com
 
Back
Top