Hi Steven,
Bookmarks won't work. By definition, a bookmark must be
unique in a document. When you insert or paste text with
duplicate bookmarks, one set will be removed (which set
depends a bit on the version of Word, and how the duplicates
are coming in).
Since you're doing this via automation, I suggest:
- store the "copy" of the main document as an AUTOTEXT
entry in the documents' template
- The bookmarks in the AutoText entry should be
"generic", and you increment them with a number as the
AutoText is inserted (i.e. the AutoText has txt, the first
copy renames to txt1 after it has been inserted, the next
txt2, etc.)
> I am experimenting with the range.copy and range.paste
> methods. I make a master copy of the main document using
[quoted text clipped - 6 lines]
> sections even if they are just copies of each other and
> therefore have the same name.) I will let everyone know.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any
follow question or reply in the newsgroup and not by e-mail
:-)
Steven Packard - 24 Aug 2004 04:27 GMT
This sounds great. I think the renamed bookmarks will
work perfectly. I am having, however, a bit of a problem
getting the entire "Main Document" into the Autotext. I
can get the main body (including the graphics, etc.) which
I use for part of my letterhead, but I cannot seem to get
the headers and footers in. Any ideas?
Steven
>-----Original Message-----
>Hi Steven,
[quoted text clipped - 37 lines]
>
>.
Cindy M -WordMVP- - 24 Aug 2004 13:40 GMT
Hi Steven,
> This sounds great. I think the renamed bookmarks will
> work perfectly. I am having, however, a bit of a problem
> getting the entire "Main Document" into the Autotext. I
> can get the main body (including the graphics, etc.) which
> I use for part of my letterhead, but I cannot seem to get
> the headers and footers in. Any ideas?
Mmmmm. You might try including a section break before and
after the text. Make sure the headers/footers are defined for
that section, and that "Same as previous" is turned off for
that and the following section.
Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun
8 2004)
http://www.word.mvps.org
This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :-)