Long Code

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm trying to write the long code, but the line not enough, so I want
complete in second line what I will do please help.
Regards
 
Alam,

To split a single line across 2 lines use space underscore

For t = _
1 To 100
Next

Mike
 
You can even use these continuation characters to insert a space line
between statements.

So in simple form you can change

If condition1 And condition2 Then

to

If condition1 And _
condition2 Then

or even

If condirion1 And _
_
condition2 Then

This can be extremely useful when the conditions are long/complex.

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 
Back
Top