Commenting blocks of code

Goldar

New member
Local time
Today, 09:55
Joined
Jul 22, 2009
Messages
5
I used to know how to comment out blocks of code, but apparently I've forgotten the steps. I think all I did was highlight the code I wanted to comment and the click on "something". It's the "something" that I've forgotten and can't find any reference to commenting and uncommenting blocks of VBA code. Does anyone remember what I'm talking about.

Thanks
 
just put a ' at the beginning of the line. It should turn green to show that it's commented out
 
If you go to VIEW > TOOLBARS > EDIT there is a button you can push to comment multiple lines selected.
 
Go to front of section.

Insert line before that point "IF 1=0 THEN"

Go to end of section.

Insert line after that point. "END IF"

That stops it cold. WATCH OUT if you have labels inside the section that could be the targets of a GOTO or GOSUB operation.
 
Go to front of section.

Insert line before that point "IF 1=0 THEN"

Go to end of section.

Insert line after that point. "END IF"

That stops it cold. WATCH OUT if you have labels inside the section that could be the targets of a GOTO or GOSUB operation.


???????????

Think ya got the wrong thread Doc :)
 

Users who are viewing this thread

Back
Top Bottom