how do I comment out a large group of VBA?

chewy

SuperNintendo Chalmers
Local time
Today, 18:26
Joined
Mar 8, 2002
Messages
581
I want to be able to comment out some code for testing purposes. Like in C++ you can use /* */ ...I think that is it. In VB is the only way to do each line?
 
theres a toobar button

type comment in the help file and it gives you instructions
 
there was nothing there but the REM statement, or is this how you do it?
 
did you go into the VBA edit screen first...?

it was the one just under REM, onlt two options came up on mine.

anyway, if you right click the toolbar (vba) then click customise and add the buttons. Comment Block and Uncomment Block (under edit).
 
hmmmmmm, I'm using xp.

Can anyone using 97 can confirm this?
 
I just checked on 97 and 2k, neither has this.
 
Last edited:
Looks like you might be out of luck chewy
 
Chewy,

Primitive, but would work ...

Code:
strTestMode = "True"

If strTestMode <> "True" Then
'
'  Whole Bunch of code
'
End If

Wayne
 
Hey! Sounds good. Thanks I will try it next time.
 
On Access2000, the 'Comment Block' & 'Uncomment Block' buttons are contained on the 'Edit' toolbar. I just went to View->Toolbars and added the Edit bar. They were there to the right of the icon that looks like a hand.
 

Users who are viewing this thread

Back
Top Bottom