Can I comment out a whole section of code with one or two clicks???

M

M Skabialka

Is there a way to select a section of code and mark it as comments while
testing the rest of the code, then returning it to active code. I mean
without going line by line and adding the apostrophe, but doing it all at
once. I thought I saw this once before but have forgotten the method.

Thanks,
Mich
 
A

Allen Browne

You can if you add the free tools from:
mztools.com

Great little utility with lots of useful features, such as adding your own
definable error-handler to a routine with a click.
 
F

fredg

Is there a way to select a section of code and mark it as comments while
testing the rest of the code, then returning it to active code. I mean
without going line by line and adding the apostrophe, but doing it all at
once. I thought I saw this once before but have forgotten the method.

Thanks,
Mich

What version?
Not sure about Access 2000 but Access 2002 has Comment Block and
Uncomment Block tool buttons. Add them to the VBA tool bar (they're in
the Edit commands when you Customize the toolbar).
 
M

M Skabialka

Just what I needed. I had it on another machine and could not recall where
to find it.

Thanks,
Mich
 
Top