Commenting out code

G

Guest

Hi,

I know how to comment out code line by line

Is there a way to comment out multiple lines at once.

Like in C++ you can
use - "/*"
and - "*/"

Is there something in excel because I have a lot of code that has to be
commented out and I dont want to go line by line and click " ' ".

Thanks for your help.
 
R

Ron de Bruin

Hi Jeff

In the VBA editor right click on the menu bar and check Edit.
On this toolbar there are two buttons that you can use for the selected code
 
G

Gord Dibben

Jeff

In VBE Right-click on a toolbar then Customize>Commands>Edit.

Drag Comment Block and UnComment Block buttons to your Toolbar.


Gord Dibben MS Excel MVP
 

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