The code below seeks to assemble an array of PDFs using the insertpages method of javascript. It works fine if I code it in a way that inserts each document one at a time; however, I am trying to set up the sub so it will take an array of PDF file names and do the same thing.
When I run the code below I get an error stating "Object variable or With block variable not set" on the line noted below. Since there are no With blocks being used I assume there is a problem with the manner in which I have defined the Document() variable, but I believe it must be "set" as a CAcroPDDoc.
Any ideas?
Thanks!
Bookmarks