Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / February 2005

Tip: Looking for answers? Try searching our database.

How to delete pages in MailMerge

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marty - 31 Jan 2005 19:35 GMT
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
Word Heretic - 07 Feb 2005 06:58 GMT
G'day "Marty" <Marty@discussions.microsoft.com>,

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:

>Hi-
>A week ago, I posted a question that was not successfully answered, so I'll
[quoted text clipped - 14 lines]
>
>Marty

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.