Search

VBA to print specified pages only

Sample VBA program on how to Print specified pages only.
Also check this free e-course on == > PDF Automation using VBA

Dim printErr As Integer
Dim app As New Acrobat.AcroApp
Dim docAC As New Acrobat.AcroAVDoc
Dim docPD As Acrobat.AcroPDDoc
 
docAC.Open FilePath, ""
printErr = docAC.PrintPagesSilent(0, 2, 2, 0, 0)
docAC.Close 1
docPD.Close
 
Set docPD = Nothing
Set docAC = Nothing
Set app = Nothing

No comments:

Post a Comment

Note: only a member of this blog may post a comment.