I have multiple issues with this process but will start with the simple, I think, issue. I created a template file that contains an excel table that supports 2 pivot tables to paste data I will copy from the source file. My issue is the excel table in the template is not expanding or accepting the written data. The data is just being written over the table. It works properly outside of UiPath.
The source file contains multiple sheets and I have a for each sheet loop because I want to copy each sheet and create separate files for each department to be emailed separately.