Thread: Long Code
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips Bob Phillips is offline
external usenet poster
 
Posts: 10,593
Default Long Code

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)



"Mike H" wrote in message
...
Alam,

To split a single line across 2 lines use space underscore

For t = _
1 To 100
Next

Mike

"Alam" wrote:

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