How to delete pages in MailMerge

M

Marty

Hi-
A week ago, I posted a question that was not successfully answered, so I'll
change my approach and rephrase it.

I have a rather long document that has many fields that are filled in by a
mailmerge. (MERGEFIELDs and DOCVARIABLEs gotten from several user forms,
where the user fills in OptionBoxs, CheckBoxs and TextBoxes).

MailMerge will generate the entire document, but if a certain question is
not answered, I want to delete some pages. If I can set up bookmarks around
these pages, can a macro be automatically run, and if the DOCVARIABLE is "Y",
then delete from BookmarkA to BookmarkB?

Alternatively, is there a better way of doing this?

Thanks,

Marty
 
W

Word Heretic

G'day "Marty" <[email protected]>,

1) You cant set bookmarks - as you can only have ONE bookmark of a
given name and mail merging causing multiple copies of the source
document

2) Lets say each 'document' starts with START HERE. Find the next
START HERE, extend it to the following START HERE and go back one
para. Now you have an entire 'document' selected.

Find the 'question' and its 'answer' within this block, and do your
if, if it is to delete some stuff, find the start of the stuff to
delete, and the end, then delet what's in between.

That is, post process the final document after the merge.

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice


Marty reckoned:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top