D
Dirdata via OfficeKB.com
I created the following macro in word.
Sub MailMerge()
'
' MailMerge Macro
' Macro recorded 09/28/06 by DirData
'
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = True
x = 1
For Y = 1 To 10970
With .DataSource
.FirstRecord = x
.LastRecord = x + 9
End With
.Execute Pause:=True
Let x = x + 10
Next Y
End With
End Sub
the above macro will do a mail merge 10 records at a time, and send them to
my printer. But, what it does, that i don't like is that it has me click the
OK button after each 10th record.
How can i have this macro not ask me to hit the OK button???
Thanks
Gary T
Sub MailMerge()
'
' MailMerge Macro
' Macro recorded 09/28/06 by DirData
'
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.MailAsAttachment = False
.MailAddressFieldName = ""
.MailSubject = ""
.SuppressBlankLines = True
x = 1
For Y = 1 To 10970
With .DataSource
.FirstRecord = x
.LastRecord = x + 9
End With
.Execute Pause:=True
Let x = x + 10
Next Y
End With
End Sub
the above macro will do a mail merge 10 records at a time, and send them to
my printer. But, what it does, that i don't like is that it has me click the
OK button after each 10th record.
How can i have this macro not ask me to hit the OK button???
Thanks
Gary T