Is there a way to set the number of printing copies variably?

C

Confusled

I need to change the number of copies printed in Word from a field in my
data. Is there a way to do this? Or else a way to repeat a record in Excel
based on a number in a field?
 
G

Greg

Say your word field is bookmarked (NumCopies)

Something like:
Sub PrintCopies()
Dim oCopies As Long
oCopies = ActiveDocument.FormFields _("NumCopies").Result
ActiveDocument.PrintOut Copies:=oCopies
End Sub
 
Top