+ Reply to Thread
Results 1 to 5 of 5

Unable to write code with more than 25 physical lines to create Outlook Email.

  1. #1
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Unable to write code with more than 25 physical lines to create Outlook Email.

    Hi Guys,

    I hope you are all well.

    I use a Userform to create an email to send to customers.

    The problem is that I can only create an email with only 24 physical lines in the .HTMLBody.

    Is there a way or a workaround so itīs possible to create an longer email through VBA?

    I have found the issue in the following link:

    https://msdn.microsoft.com/en-us/lib.../gg264236.aspx

    Your assistance on this matter will be highly appreciated.

    Best regards,
    Filipe Oliveira

  2. #2
    Forum Contributor
    Join Date
    09-03-2015
    Location
    IE
    MS-Off Ver
    2003 - 2016
    Posts
    258

    Re: Unable to write code with more than 25 physical lines to create Outlook Email.

    You simpy have too many Line Continuation characters (& _ at the end of a line) - nothing to with the number of physical lines in an email.

    Just start again concatenating the string. Repeat as often as needed.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Unable to write code with more than 25 physical lines to create Outlook Email.

    If it's just literal text, why not just store in a cell?
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Unable to write code with more than 25 physical lines to create Outlook Email.

    Hi grimes0332,

    Thank you so much for your reply.

    I was exactly what I was looking for.

    Really appreciated for your support.

    Best regards,
    Filipe

  5. #5
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Unable to write code with more than 25 physical lines to create Outlook Email.

    Hi shg,

    Thanks for your reply.

    Unfortunately is not simple literal text. The Userform have some TextBoxes that the value will be inserted in the middle of the text body of the email. The UserForm populates data from a table as well.

    The solution provided by grimes0332 solved the problem big time.

    Thanks anyway for your support.

    Best regards,
    Filipe

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Change VBA to allow email code to bring up outlook email before sending it
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-03-2015, 02:33 AM
  2. Unable to send user-editable text to Outlook email body based on active cell.
    By m0meehan in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-20-2014, 01:51 PM
  3. [SOLVED] Using Exell VBA to launch Outlook Email while separating lines in the body of Outlook.
    By Tazyote in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-27-2013, 01:18 PM
  4. [SOLVED] Help me fix attached code (create Outlook email then create calendar item)
    By Rerock in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2013, 08:15 PM
  5. Replies: 8
    Last Post: 05-17-2013, 01:53 AM
  6. outlook double lines in email what is the cure
    By peter Musgrave in forum Excel General
    Replies: 1
    Last Post: 07-25-2006, 04:20 PM
  7. [SOLVED] Excel Spreadsheet email attachment unable to open in Outlook Expr.
    By Joanne from Tiffin, Oh in forum Excel General
    Replies: 1
    Last Post: 04-22-2005, 08:06 PM

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