Additionally I did try with the most latest version I could find out from DX with download link as : https://digitalexchange.blueprism.com/dx/entry/3439/solution/ms-excel-vbo, and I was able to move the worksheet with this VBO as well.
You should pass the Destination Position as 1 as index starts from 1 in MS Excel (Ref - Sheet1 by default), let me know if you face the error again !! with these changes.



------------------------------
Kindly up vote this as "Best Answer" if it adds value or resolves your query in anyway possible, happy to help.
Regards,
Mukesh Kumar - Senior Automation Developer
NHS England, United Kingdom, GB
------------------------------
Original Message:
Sent: 03-09-2023 17:26
From: Tejaskumar Darji
Subject: Facing an issue in Move Worksheet - MS Excel VBO
Hi team,
I'm facing the below error while trying to copy a worksheet from one workbook to another workbook. I'm using the latest MS Excel VBO from DX.


I'm passing True in Copy flag since the action name says Move Worksheet but also has a flag exposed to only copy(should rename this action to Move/Copy Worksheet)
I have both workbooks opened.
Tried different scenarios here but could not find a solution to this error.
Any help would be appreciated.
------------------------------
If I was of assistance, please vote for it to be the "Best Answer".
Thanks & Regards,
Tejaskumar Darji
Sr. Consultant-Technical Lead
------------------------------