Multiline Comment in Visual Basic

There is no multiline comment blocking in VBA, however, you can simulate it with a silly trick like this:

If 1=2 Then

\'You can comment large blocks of code with this trick.

\'But, any text comments must be formatted properly with the normal quote syntax.

End If

(Until the basic principles of math are ruled obsolete, the code block above will never be evaluated. =)

Related Scribbles:
  • Visual Basic Notes

  • ID: 270
    Date Updated:
    2003-12-23 00:22:55
    Date Created:
    2003-08-25 10:53:34


     >> Leonard Chan's Homepage  >> Scribble Web  >> Multiline Comment in Visual Basic is hosted by Perceptus Solutions Inc.