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:
Then gets the results of the lookup from an adjacent cell:Code:Worksheets("Valuation Types").Cells(42, 1).Value = strValType
It is then attached to emailCode:strDisclaimer = Trim(Worksheets("Valuation Types").Cells(41, 2).Text)
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?Code:olMailItem.Body = strDisclaimer


Reply With Quote