Charles
Thu Feb 03 09:33:55 CST 2005
If you use mailmerge to a new result document, all bookmarks (and fields)
are lost. See if you can generate your result without a final mailmerge. I
use mailmerge with single records and use the merge preview screen. This
still has fields and bookmarks.
--
Charles Kenyon
Word New User FAQ & Web Directory:
http://addbalance.com/word
Intermediate User's Guide to Microsoft Word (supplemented version of
Microsoft's Legal Users' Guide)
http://addbalance.com/usersguide
See also the MVP FAQ:
http://www.mvps.org/word which is awesome!
--------- --------- --------- --------- --------- ---------
This message is posted to a newsgroup. Please post replies
and questions to the newsgroup so that others can learn
from my ignorance and your wisdom.
"Marty" <Marty@discussions.microsoft.com> wrote in message
news:C6DDBC37-E178-4911-A557-C6D6E5002F81@microsoft.com...
> Hi Helmut-
>
> I am generating a document using a Word97 template (.dot). As the user
> checks off checkboxes and optionboxes, I will know if parts of the
> template
> should be eliminated.
>
> So, I thought that if I put in some bookmarks into the template, I could
> then add to the macro a section that would delete the text between the
> certain bookmarks if it is not required.
>
> But the bookmarks do not appear in the merged document.
>
> For example: If I have a 4 pages of text in the middle of the template
> referring to stamp collecting, but the user checks the box that says he is
> not a stamp collector, then I do not want to show those 4 pages after the
> mailmerge.
>
> I thought that by putting a bookmark (BK1) before these 4 pages, and
> another
> bookmark (BK2) after, that I could then delete all text between these 2
> bookmarks just after the code that does the mailmerge. But the bookmarks
> do
> not appear in the merged document.
>
> So, how may I delete the 4 pages? (I have several of these sections which
> may or may not be deleted, depending on the answers to the check boxes.)
>
> Thanks,
>
> Marty
>
> "Helmut Weber" wrote:
>
>> Hi Marty,
>>
>> no way! A bookmark is a unique location.
>> So, it is not possible to have the same bookmark
>> more than once in a document.
>> Workarounds? Probably.
>> Possibly pretty complicated.
>> If you could tell us, what exactly you want to do.
>>
>> Greetings from Bavaria, Germany
>>
>> Helmut Weber, MVP
>> "red.sys" & chr(64) & "t-online.de"
>> Word XP, Win 98
>>
http://word.mvps.org/
>>
>>
>>