Hi,
I have been able to use the Adobe Acrobat Doc.InsertPages method successfully to insert single page PDF's into another PDF document, but I can't get that same method to accomodate a multiple-page PDF document insertion - in my case a 3 page PDF. In the VBA script below, the variable numbackPages = 3, but the IF evaluates to False, so the 3 page PDF named "backup" is not inserted into the target PDF named "cover". That method does work, however, when the variable in the place that numbackpages occupies is equal to 1.
If cover.InsertPages(numPages - 1, backup, 0, numbackPages, True) = False Then
MsgBox "Can't merge backup of line " & i & "!"
End If
Can you offer any help? I have not been able to find any source on the web that delas with this issue.
Thanks.
Brian
I have been able to use the Adobe Acrobat Doc.InsertPages method successfully to insert single page PDF's into another PDF document, but I can't get that same method to accomodate a multiple-page PDF document insertion - in my case a 3 page PDF. In the VBA script below, the variable numbackPages = 3, but the IF evaluates to False, so the 3 page PDF named "backup" is not inserted into the target PDF named "cover". That method does work, however, when the variable in the place that numbackpages occupies is equal to 1.
If cover.InsertPages(numPages - 1, backup, 0, numbackPages, True) = False Then
MsgBox "Can't merge backup of line " & i & "!"
End If
Can you offer any help? I have not been able to find any source on the web that delas with this issue.
Thanks.
Brian