Results 1 to 2 of 2

Thread: RESOLVED: Strings truncating in Outlook

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    35

    RESOLVED: Strings truncating in Outlook

    I am using a vlookup to return a long piece of text to a cell that I then want to put in the body of an email. This piece of text has carriage returns and spaces in.

    My piece of VBA enters the lookup value:

    Code:
    Worksheets("Valuation Types").Cells(42, 1).Value = strValType
    Then gets the results of the lookup from an adjacent cell:

    Code:
    strDisclaimer = Trim(Worksheets("Valuation Types").Cells(41, 2).Text)
    It is then attached to email

    Code:
    olMailItem.Body = strDisclaimer
    Unfortunately the string is truncated about half way through and I am not sure why. It does not truncate where there is a carriage return, I have tried splitting the text into 2 halves and I have tried changing the format of the cell to a few different combinations but with no luck. Any ideas?
    Last edited by jrpfinch; Aug 11th, 2003 at 09:08 AM.

  2. #2

    Thread Starter
    Member
    Join Date
    Jul 2003
    Posts
    35

    sussed it

    Putting .value instead of .text solves this problem

Posting Permissions

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



Click Here to Expand Forum to Full Width