+ Reply to Thread
Results 1 to 3 of 3

Too many line continuations

Hybrid View

TonyforVBA Too many line continuations 12-07-2010, 10:48 AM
snb Re: Too many line... 12-07-2010, 11:25 AM
Swift4Play Re: Too many line... 12-07-2010, 11:26 AM
  1. #1
    Forum Contributor
    Join Date
    02-24-2010
    Location
    Dublin, Ireland
    MS-Off Ver
    Excel 2003
    Posts
    195

    Question Too many line continuations

    This is probably somthing real simple but Im new to SQL.
    I have a macro for distributing e-mails and for the body of the e-mail Im having trouble including as many lines as I would like I am useing the line break code below for each new line. At the moment this has been working fine, but on trying to included any further text after 22lines I am getting the 'Too many line continuations' error flag.

    Is there maybe a paragrahing code or somthing that I should be useing instead of all these line breaks?

    Cheers!

     & vbCrLf & _

  2. #2
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Too many line continutations

    Did you try:

    replace("text1~text2~text3~text4~text5~text6~text7~text8~text9~text10","~",vbLf)



  3. #3
    Registered User
    Join Date
    11-21-2009
    Location
    Rhyl, North Wales
    MS-Off Ver
    Excel 2003
    Posts
    39

    Thumbs up Re: Too many line continutations

    Not sure if this is exactly the same as i've had recently but what i did was

    Example:

    Instead of
    MsgBox " Hello " & vbCrLf & _
                 " I'm Using "& vbCrLf & _
                 " Lots " & vbCrLf & _
                 " Of " & vbCrLf & _
                 " Lines"
    Try

    MsgBox " Hello " & vbCrLf & " I'm Using "& vbCrLf & " Lots " & vbCrLf & _
                 " Of " & vbCrLf & " Lines"
    I'm not expert but this worked for me with me 'Too Many Lines' lines issue
    Hope it helps
    Last edited by Swift4Play; 12-07-2010 at 11:29 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1