Tom Knowlton
asked on
Multiline comments in VBA?
I know how to do a single-line comment in VBA:
'This is a comment
Usually when I do multiple lines I just begin each line with a single quote:
'This is comment line 1
'This is comment line 2
'...
'Comment N...
Is there a multiline comment format (as found in other languages)?
As in:
/*Comment line 1
Line 2
Line 3
Line 4
Line 5 */
(Everything between the /* and the */ is marked as a comment.
Just wondering if VBA has the same sort of thing, and I missed it.
Tom
'This is a comment
Usually when I do multiple lines I just begin each line with a single quote:
'This is comment line 1
'This is comment line 2
'...
'Comment N...
Is there a multiline comment format (as found in other languages)?
As in:
/*Comment line 1
Line 2
Line 3
Line 4
Line 5 */
(Everything between the /* and the */ is marked as a comment.
Just wondering if VBA has the same sort of thing, and I missed it.
Tom
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Maybe you can use this:
#If 0 = 1 Then
Beep
Beep
#End If
#If 0 = 1 Then
Beep
Beep
#End If
ASKER
Arthur: Thanks for your 2 cents. I'll keep my points lower for future "easy" questions. :)