This looks like something to get the grey matter working
I was hoping it would whet someone's interest!
You have a whole raft of two sentence paragraphs. Do you want two
insertions for each paragraph - one for each of the sentences? i.e.
140,000+ tables? I think that might bring Word kicking and screaming
to a halt, but before we worry too much about that, we need some
more information.
Actually, I want one insertion after each sentence but each
paragraph's insertions will be two different tables.
What determines which of your 20 documents is to be inserted? If you
are going to have to manually select them, the easiest way would be
to use a formatted autocorrect to replace tb#20 with the field
information {INCLUDETEXT c:\\path\\Table-20.doc"} (one for each
document) and as you
type in the code the field will be inserted automatically.
The first sentence concerns a person's birth and if his parents are
related to each other and if so what that relationshop is (i.e. John
Doe, born 15 Sep 1875
- died 27 Jun 1927, was the third child and second son of James Doe
and Jane Whoever- who were themselves third cousins once removed.).
The table for this sentence will be determined by the relationship
between the parents.
The second sentence concern's a person's marriage and it there is a
blood relationship between the spouses and if so what that
relationship is (i.e. On 21 Oct 1899 he married his ninth cousin once
removed, Jill Whosits, who was 19, eldest daughter of Jack Something
and Mary Whatshername). The table for this sentence will be
determined by the relationship between the marrying parties
If you have some means of determining the choice from the content of
the
text (or other means) then a macro would speed things up a bit
In
theory there is no reason why you could not use replace to swap your
codes for documents to be inserted, but I would initially be more
interested in how
you intend to place the codes.
See above for determination of tables.
The final output should look like:
John Doe, born 15 Sep 1875 - died 27 Jun 1927, was the third child
and second son of James Doe and Jane Whoever- who were themselves
third cousins once removed.
On 21 Oct 1899 he married his ninth cousin once removed, Jill
Whosits, who was 19, eldest daughter of Jack Something and Mary
Whatshername- who were themselves fourth cousins twice removed.
Next paragraph-etc.
The formatted autocorrect includetext option may be the easiest as I
know nothing at all about macros. How many Autocorrect entries can be
preformatted?
I'm using word 2000 if it males a difference.
Thanks for taking the time to look at this. I greatly appreciate it.
Andy.III