Currently I have multiple excel files in a directory, each consisting of multiple transaction records.
When one of the transaction records doesn’t match with what we have in the system, we highlight the corresponding transaction’s row in the excel.
What I need help with is:
Within the for each file loop, when the current file being processed has an error and got highlighted, copy that excel file to the directory specifically for saving those error files
Attach all those excel files to outlook mail after the for each loop is finished