#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default 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


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default 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


  #3   Report Post  
Posted to microsoft.public.excel.misc
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




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Drop Down/List w/Code and Definition, only code entered when selec Spiritdancer Excel Worksheet Functions 2 November 2nd 07 03:57 AM
Clearing cells takes long, long time unclemuffin Excel Discussion (Misc queries) 9 August 17th 07 02:22 AM
Long Date - Long Date = text is days tom Excel Discussion (Misc queries) 2 November 13th 06 04:17 AM
copying vba code to a standard code module 1vagrowr Excel Discussion (Misc queries) 2 November 23rd 05 04:00 PM
my code too long? Zach Excel Worksheet Functions 2 August 3rd 05 07:53 PM


All times are GMT +1. The time now is 12:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"