View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
joan joan is offline
external usenet poster
 
Posts: 7
Default square boxes when using vbcrlf

I didnt give enough info in my original post, so let me
explain a little better.

I'm saving the text of an email from Outlook to Excel
using VB. My code just grabs the body of the email and
saves it into an excel spreadsheet cell. When you view the
Excel Spreadsheet every CR and LF 'also' has a little box.
You can then manually edit the Excel cell and 'remove' the
little box, and the CRs and LFs are not affected. (And
this is what the KBArticle has to say)

(I'm not interacting with a VB text box).

The code to test for vbcr or lf or etc....removes the CRs
and LFs and the little boxes. However I do not want to
strip the CRs and LFs.

thanks for your help.

joan
-----Original Message-----
On Mon, 4 Aug 2003 at 10:52:41, joan (joan <joan@prism-

inc.org) wrote:
I need to retain the formatting, (the CRs and LFs), so I
cant use your example. The problem is that you can go

into
excel and manually remove the little boxes and it
does 'not' disrupt the formatting, it leaves the CRs and
LFs in the text. I can make Excel do just about anything,
in code, but cannot get Excel to let me replace the
squares with nothing.

I think you need to set the MultiLine option on the

TextBox to TRUE then
--
Mike
.