Your best short-term bet, assuming you have Excel on your system, do not
have non-ANSI Unicode characters in your Excel sheet, and have the data in
the first sheet of your workbook (and probably other stuff as well...), is
to try changing the way Word gets your data to the old method (DDE): check
Word Tools|Options|general|"Confirm conversion at Open", go through the
connection process again, and select the DDE method in the additional dialog
box.
Assuming you are using Word 2002/2003, the problem is that the OLEDB
provider that Word uses to get data from Excel tries to determine a data
type for each column. It looks in the first 8 or 25 rows and uses the data
type it finds for the rest of the column. When the types are mixed, it takes
the "majority type". The trouble is that it regards text less than 256
characters long as "text" type and longer ones as "memo" type, and there are
also additional special rules when dealing with texts and memos. You /might/
find, for example, that by adding enough trailing space to shorter texts in
the same column, the whole thing springs to life again.
I'd point you to the web pages I'm writing on this but there are so many ifs
and buts that it's taking me forever to complete.
Peter Jamieson
>I have a word template document and I am trying to merge data from an
> Excel spreadsheet.. I have a couple of large text fields and the merge
> seems to be truncating at 255 characters.. Does anyone know if there is
> a limitation? if so can you link me to the documentation.
>
> Nance
Peter Jamieson - 25 Jan 2007 10:55 GMT
<<
Assuming you are using Word 2002/2003, the problem is that the OLEDB
provider that Word uses to get data from Excel tries to determine a data
type for each column. It looks in the first 8 or 25 rows and uses the data
type it finds for the rest of the column. When the types are mixed, it takes
the "majority type". The trouble is that it regards text less than 256
characters long as "text" type and longer ones as "memo" type, and there are
also additional special rules when dealing with texts and memos. You /might/
find, for example, that by adding enough trailing space to shorter texts in
the same column, the whole thing springs to life again.
Actually, this is not quite true. By default, when the types are mixed, it
takes the "text" type, unless the types are "memo" and "text", in which case
it does appear to use "memo", at least in my copy of Office, on my system,
right now. But
a. every single cell in the relevant column in the first 25 non-heading
rows needs to have a memo or text in it - no numbers
b. I am fairly sure from previous experiments that even that is not always
enough.
Peter Jamieson
> Your best short-term bet, assuming you have Excel on your system, do not
> have non-ANSI Unicode characters in your Excel sheet, and have the data in
[quoted text clipped - 24 lines]
>>
>> Nance