The problem I am trying to resolve is to print several different documents to PDF files, and then merge them into one PDF file.
My method:
With PDF Printer as the default printer, I set up a loop for Word files, and one for Excel files.
Within each loop, for each CurrentItem, I get the file path name (to name the interim PDF file), and rename each file to one consistent name (e.g., ToPrint.docx or ToPrint.xlsx) so that I can populate the interim filename and save the interim files via the UI element with the same Word and Excel windows
However, after the first run of the loop, I cannot rename the file in the second run of the same loop. The error message is "Can't rename file" because access to path of ToPrint.docx is denied.