I am writing output to an Excel file within a batch macro.
If I use the 'Create New Sheet' option, it writes the first time the macro is invoked, but fails afterwards with a 'Sheet already exists' error.
If I use the 'Append to Existing Sheet' option, it fails the first time with a 'Sheet does not exist' error.
Ideally, I would like the sheet to be created the first time the macro is called, then appended to on subsequent calls.
Assistance would be appreciated.
Thanks.