I would like to change the following macro so that it selects only those
people in the data source that do NOT have an email address (ie Email =
blank). Any suggestions? I will also need to know how to change it back to
Email = All.

Thanks!


Sub PrintMerge()
'

With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=False
End With
End Sub

Re: Specify Criteria for Mail Merge Recipients by macropod

macropod
Wed Jul 16 14:37:03 PDT 2008

Hi Lynn,

You can achieve this without a change to the macro, by incorprating a SKIPIF field into your mailmerge template. See Word's Help
file for details.

--
Cheers
macropod
[MVP - Microsoft Word]


"Lynn" <Lynn@discussions.microsoft.com> wrote in message news:B0389BA4-FF67-4AA1-8D26-D2E6ADDFE29B@microsoft.com...
>I would like to change the following macro so that it selects only those
> people in the data source that do NOT have an email address (ie Email =
> blank). Any suggestions? I will also need to know how to change it back to
> Email = All.
>
> Thanks!
>
>
> Sub PrintMerge()
> '
>
> With ActiveDocument.MailMerge
> .Destination = wdSendToPrinter
> .SuppressBlankLines = True
> With .DataSource
> .FirstRecord = wdDefaultFirstRecord
> .LastRecord = wdDefaultLastRecord
> End With
> .Execute Pause:=False
> End With
> End Sub
>
>