Im using a batch macro to write to multiple tabs within a single excel file. And I get an error randomly at times.
Can you help me understand why. I have attached a sample macro for this use case and error message.
error message
Error: WriteToTabMacro (96): Record #1: Tool #14: Unable to create backup of Output\TTTT_ALTERYX.xlsx to Output\TTTT_ALTERYX.xlsx.bak: The process cannot access the file because it is being used by another process. (32)
Note:
AMP Engine is off
Batch Macro Takes filename as Control paramater
Creates a new sheet each time, not overwrites