When running an iterative macro standalone, I am able to generate the desired result, but, when I call this macro from within a batch macro I am getting the above mentioned error.
The problem starts when I remove the Output at the bottom. Attaching it again after the error occurs doesnt make the error go away.
It doesnt give me any clue as to where the problem occurs, or what is going wrong.
Can someone provide some insight? Thanks.