Email a specific page IF

J

John P

1) In a 10-page or more Word document, I need to email
page 3 IF there were any records at all that were merged
in it, otherwise (if no records are merged in it), email
of that page 3 shouldn't go.
2) I also wouldnt want the rest of the pages to get
emailed to that person, just page 3!!
 
P

Peter Jamieson

I don't think you'll be able to specify this using Word's built-in
facilities. How I would proceed would depend partly on how I could tell
whether any records had been merged on page 3. In this cse I would probably
start by trying to find a way to determine /before/ the merge which
recipients needed pages 1,2,4-10 and which just needed page 3, then do two
separate merge operations. If that isn't possible for some reason, I'd
probably try to use a Word macro to
a. process each recipient's data as a separate merge to an output file
b. examine the output file to see whether pp1,2,4-10 or just 3 were needed
c. chop the appropriate bits out of the document and e-mail them from VBA
 

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