Lots of REM lines an easy way?

  • Thread starter Thread starter Charlie
  • Start date Start date
C

Charlie

If I have multiple lines of code, say an if-then statement with 12 lines in
between, and I want to make the whole thing a rem statement. Is there an
easier way than having to put a ' in front of each line, and then having to
go back and take them away if I want to use the code again?
thanks.
 
in the vb editor, make sure the edit toolbar is visible. view/toolbars/edit

there is a comment block and an uncomment block toolbar button.

select the lines you want to comment out and click the comment block toolbar
button
 
I put the Comment Block and Uncomment Block buttons directly on the main
Toolbar. To do this, right-click an empty spot on the main Toolbar and click
on Customize in the popup menu. Select the Commands tab and then click on
Edit in the Categories list. Next, scroll the Commands list down until you
see the Comment Block icon... click and drag it onto the main Toolbar (you
can't just drop it anywhere; watch the icon for a plus sign, not the "x"
sign to see where it is permissible to drop it). Do the same for the
Uncomment Block. Close the Customize dialog and your are done. Select any
lines you want make into comments and click the Comment Block icon. To
uncomment them, select the lines you want to do that do, then click the
Uncomment icon.

Rick
 

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

Back
Top