Hi all
I am using excel automation in most of my applications.
My query is : how to add a worksheet after existing worksheets in an active workbook
using the worksheet.add method adds a worksheet before existing worksheets not after
e.g. for a report based on monthly values, if I want to add worksheet named june 2024 after worksheet named May 2024, worksheets.add method adds the new worksheet before May 2024 but I want it to come after may 2024.
worksheet.add(after:=(pv wksheet name)) throws a syntax error
Any help / sample code would be welcome
thanks in advance
I am using excel automation in most of my applications.
My query is : how to add a worksheet after existing worksheets in an active workbook
using the worksheet.add method adds a worksheet before existing worksheets not after
e.g. for a report based on monthly values, if I want to add worksheet named june 2024 after worksheet named May 2024, worksheets.add method adds the new worksheet before May 2024 but I want it to come after may 2024.
worksheet.add(after:=(pv wksheet name)) throws a syntax error
Any help / sample code would be welcome
thanks in advance