Comment out code blocks

P

Peter Hewett

Hi Aidy

Absolutely! Just insert a single quote character on the line, like so:

' This is a comment

The VBA Ide even has buttons to prefix a selected line of block of code with
a single quote and another button to remove the single quotes. The 2 buttons
are on the Edit toolbar. To find them just move the mouse cursor over the
toolbar icons and tooltip text should indentify them as "Comment Block" and
"Uncomment Block".

HTH + Cheers - Peter

(e-mail address removed) (Aidy) wrote in @posting.google.com:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top