J
jburgess
Hi all,
I am trying to get my MSWord Macro to look in specific places to find
the records in my mail merge to print. Ideally I would like a .txt file
with records numbers in and the macro to look at what it is being told
to print and change the number in the code to correspond with this...
Here is the code I have...
Sub Merge()
'
' Merge Macro
' Macro created 28/02/2006 by A Computer
'
With ActiveDocument.MailMerge
SendKeys "{enter}"
.Destination = wdSendToPrinter
.DataSource.FirstRecord = 1
.DataSource.LastRecord = 1
.Execute
SendKeys "{enter}"
.Destination = wdSendToPrinter
.DataSource.FirstRecord = 3
.DataSource.LastRecord = 3
.Execute
End With
End Sub
P.S.
Also I know using SendKeys isn't exactly recommended, any replacment
commands???
I am trying to get my MSWord Macro to look in specific places to find
the records in my mail merge to print. Ideally I would like a .txt file
with records numbers in and the macro to look at what it is being told
to print and change the number in the code to correspond with this...
Here is the code I have...
Sub Merge()
'
' Merge Macro
' Macro created 28/02/2006 by A Computer
'
With ActiveDocument.MailMerge
SendKeys "{enter}"
.Destination = wdSendToPrinter
.DataSource.FirstRecord = 1
.DataSource.LastRecord = 1
.Execute
SendKeys "{enter}"
.Destination = wdSendToPrinter
.DataSource.FirstRecord = 3
.DataSource.LastRecord = 3
.Execute
End With
End Sub
P.S.
Also I know using SendKeys isn't exactly recommended, any replacment
commands???