Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Text values > length 255 won't *quite* go into Excel 2000
Message
From
26/04/2001 15:45:47
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Text values > length 255 won't *quite* go into Excel 2000
Miscellaneous
Thread ID:
00500341
Message ID:
00500341
Views:
58
Using OLE Automation and Excel 2000, I am loading memo fields into cells of a sheet. The text will go into the cell, but if the text length > 255, the formatting does weird stuff. I have the column set to wrap text, and it will not do it for these cells. I found that 255 chars was a limitation in earlier versions of Excel, but that is no longer the case.

Now to muddy the water a bit :)

You can enter text manually greater than 255 length and the wrapping has no trouble.

You can paste into a cell from the clipboard, and there is no problem

I have tried setting the value through Automation, and also pasting from the clipboard, byt assigning _CLIPTEXT to the memo content and pasting it in in the sheet using the Paste() method.

Setting the value (mysheet.activecell.Value = cMemoText) puts the data into the cell, but the text won't wrap if it is longer than 255.

Pasting in from the clipboard has the same problem, and it destroys the formatting of the column width at the same time.

Help!

Jim
Jim Newsom
IT Director, ICG Inc.
Next
Reply
Map
View

Click here to load this message in the networking platform