Code to continue code on next line

P

Pamela

I have a pretty long piece of code that I'd like to space out over multiple
lines for easier reading and future handling and I know I've seen a special
 
J

John W. Vinson

I have a pretty long piece of code that I'd like to space out over multiple
lines for easier reading and future handling and I know I've seen a special

The line continuation signal is a blank followed by an underscore at the end
of the line:

FirstLine Of Your Code _
and then the second
 
P

Pamela

Thanks, John. That's what I needed. In doing that though, I don't see that
the system is allowing me to use in between the description symbol '. I'm
sure there's a technical name for it but where you use the apostrophe mark
and then it disregards that which follows (turning it green). I'm really
hoping to utilize that function so that I can later go in and easily find
aspects of it to change or fix anything needed. How can I use these two
features together??
 
J

John W. Vinson

Thanks, John. That's what I needed. In doing that though, I don't see that
the system is allowing me to use in between the description symbol '. I'm
sure there's a technical name for it but where you use the apostrophe mark
and then it disregards that which follows (turning it green). I'm really
hoping to utilize that function so that I can later go in and easily find
aspects of it to change or fix anything needed. How can I use these two
features together??

As far as I know, you can't - just as you cannot embed a comment block inside
a single line statement.

I remember in PL/I you could use

X = Y + /* This just adds the two values */ Z

but you don't have that liberty in VBA to my knowledge! Anyone else have a
suggestion?
 

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