Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Posts
    102

    Unanswered: 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

  2. #2
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •