If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > THe Resume line character ?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-13-04, 17:19
ontheDB ontheDB is offline
Registered User
 
Join Date: Sep 2003
Posts: 80
THe Resume line character ?

Hi,

In VBA programming,

how do u spread one line of code onto multiple lines.

e.g.

if ( (var1 = 0) AND (var2= 1) ) then
.
.
.

how would i split that up to ?

if ( (var1 = 0) AND
(var2 = 1) then



thanks
Reply With Quote
  #2 (permalink)  
Old 01-14-04, 05:39
Xl-Dennis Xl-Dennis is offline
Registered User
 
Join Date: Dec 2003
Location: Östersund Sweden
Posts: 60
Hi,

Code:
if ( (var1 = 0) AND _
    (var2= 1) ) AND _
end if
For text like "XL-Dennis prefer to work with MySQL" then use:

Code:
Dim stMsg as String

stMsg = "XL-Dennis prefer " _
            & "work with MySQL"
HTH
Dennis
__________________
Kind regards,
Dennis
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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