G
Guest
I have written a macro that do a mailmerge, my problem is that i want the
user to choose how many copies to print. I have the number of copies in a
variable.
"numcopies = system.privateprofilestring(inifil, "startup", "numcopies") "
How can i put in ".copies:=numcopies" in my codeexample below?
Or are there any better/other solution?
"
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=False
End With
"
Thanks in advance.
user to choose how many copies to print. I have the number of copies in a
variable.
"numcopies = system.privateprofilestring(inifil, "startup", "numcopies") "
How can i put in ".copies:=numcopies" in my codeexample below?
Or are there any better/other solution?
"
With ActiveDocument.MailMerge
.Destination = wdSendToPrinter
.SuppressBlankLines = True
With .DataSource
.FirstRecord = wdDefaultFirstRecord
.LastRecord = wdDefaultLastRecord
End With
.Execute Pause:=False
End With
"
Thanks in advance.