So I have a PDF document and I want to be able to automate the import the XML files in a folder into PDF documents, e.g., 5 XML files = save as 5 PDF documents. However, the problem is, there is a problem: my current VBA code forces me to "Select Data Containing Form Data" instead of selecting the files in order itself. I've pieced together some VBA code to achieve more or less what I want, except that the "jso.importXFAData myFile is not automating as I need to manually select the files (e.g., if I have two files in my folder, I would have to select the first file, then the VBA loops, and I would then have to select the second file):

Please Login or Register  to view this content.
Please let me know what I can do to revise this code!