Hello everyone,
I started learning Power Automate Desktop and I am trying to achieve the below scenario:
1. Launch an excel file.
2. Get the last tab or go to the last tab and copy all information from the previous tab.
3. Create a new tab and paste the information in.
So basically an excel sheet might have 20 worksheets and during the flow process, it should always find the last excel worksheet -> copy the data from the previous worksheet (worksheet no.19) -> create a new worksheet and paste the information that is coming from the worksheet no.19.
It is not always 20 worksheets so the flow should be dynamic and always find the last sheet.
What I tried is the below:


However, I am still struggling to get the last worksheet and the one before the last worksheet - 1 to copy the data and paste in a new worksheet.
Could please provide some screenshots or an example on how to achieve the above?
Any help is highly appreciated.
Best regards,
Julien