ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Long Code (https://www.excelbanter.com/excel-discussion-misc-queries/166133-long-code.html)

Alam

Long Code
 
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



Mike H

Long Code
 
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



Bob Phillips

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






All times are GMT +1. The time now is 10:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com