S
Sverk
Hi, I'm trying to get a Word 2003 macro to sort the paragraphs in a Word
document, using
ActiveDocument.Content.Sort
but it doesn't work when the difference between two paragraphs occurs late
in the paragraphs.
The paragraphs are often 200 characters long or a bit more, and the crucial
difference can occur near the end sometimes.
As I have tested, when the difference occurs within the first 41 character
it works, but not when it occurs later than the 71th character, then they are
treated as identical and don't get sorted.
Gives me a hunch that the Sort procedure has a limit at, say, 64 characters.
Is that so?
If it is, what can I do?
Could the "sort depth" or whatever it may be called be somehow increased?
If not, would something like this be possible:
As it happens, each paragraph always consists of several lines, separated by
new-line characters (shift-return). Assuming each line is within the(?) 64
char limit,
Could the .DOC be treated as a table with each paragraph treated as a record
(row) and the new-line chars as field (cell) separators within the rows?
Please, All help and hints appreciated,
Sverk
document, using
ActiveDocument.Content.Sort
but it doesn't work when the difference between two paragraphs occurs late
in the paragraphs.
The paragraphs are often 200 characters long or a bit more, and the crucial
difference can occur near the end sometimes.
As I have tested, when the difference occurs within the first 41 character
it works, but not when it occurs later than the 71th character, then they are
treated as identical and don't get sorted.
Gives me a hunch that the Sort procedure has a limit at, say, 64 characters.
Is that so?
If it is, what can I do?
Could the "sort depth" or whatever it may be called be somehow increased?
If not, would something like this be possible:
As it happens, each paragraph always consists of several lines, separated by
new-line characters (shift-return). Assuming each line is within the(?) 64
char limit,
Could the .DOC be treated as a table with each paragraph treated as a record
(row) and the new-line chars as field (cell) separators within the rows?
Please, All help and hints appreciated,
Sverk