A
Alex Wenzel
Hi group,
my problem (Word 2003):
I have to identify all numbers that are at the beginning of a paragraph
in a word document but are *not* headings and put a marker (like
"xyzxyz") in front of the number (to prevent that any numeric character
that does not belong to a heading will ever stand at the beginning of a
paragraph; this is important for further scripting/conversion in this
case).
Headings (which shall *not* get a marker) are numbered 1., 1.1, 1.2,
2., 3., 3.1, 3.2, 3.2.1, 3.2.2, 3.3, 4. etc.
There are probably no numbers >99 in Headings (so no three-digit
numbers between periods in heading numbering), but at the beginning of
paragraphs there may be numbers that have (a) periods as thousands
separators, as these are German documents and (b) dates, which are
written "xx.xx.xxxx" here, with or without spaces.
both kinds of numbers should be treated like all other non-heading
numbers (put a marker before the first digit at the beginning of the
paragraph).
I can't use paragraph styles for identification, because they're not
reliably there.
All this should be done by a macro.
Actually, I don't have a clue about VBA, but I can copy/paste, and I
have to solve this - fast!
Can someone help?
TIA
Alex
my problem (Word 2003):
I have to identify all numbers that are at the beginning of a paragraph
in a word document but are *not* headings and put a marker (like
"xyzxyz") in front of the number (to prevent that any numeric character
that does not belong to a heading will ever stand at the beginning of a
paragraph; this is important for further scripting/conversion in this
case).
Headings (which shall *not* get a marker) are numbered 1., 1.1, 1.2,
2., 3., 3.1, 3.2, 3.2.1, 3.2.2, 3.3, 4. etc.
There are probably no numbers >99 in Headings (so no three-digit
numbers between periods in heading numbering), but at the beginning of
paragraphs there may be numbers that have (a) periods as thousands
separators, as these are German documents and (b) dates, which are
written "xx.xx.xxxx" here, with or without spaces.
both kinds of numbers should be treated like all other non-heading
numbers (put a marker before the first digit at the beginning of the
paragraph).
I can't use paragraph styles for identification, because they're not
reliably there.
All this should be done by a macro.
Actually, I don't have a clue about VBA, but I can copy/paste, and I
have to solve this - fast!
Can someone help?
TIA
Alex