How do you line wrap code in VBA?

G

Guest

I have a rather large calculation being performed and it scrolls quite far to
the right. I want to modify the format of the calc so that I can break it up
to continue on the next line so it will all be visible. I know how to do
this in other languages, but not in VBA. Any Ideas would be great.

Thx.

James D.
 
A

Allen Browne

Use the underscore as the line continuation character.

Cannot be inside a string, so you may end up closing the string, and
concatenating the rest after the line break:
strSql = "SELECT * FROM Table1 " & _
"WHERE (False);"
 

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

Top