Hello
I would like to use the sheet index instead of the sheet name because it changes all the time
How can I achieve that ? Thanks

Hello
I would like to use the sheet index instead of the sheet name because it changes all the time
How can I achieve that ? Thanks

Can you check the datatype of getsheets
hi @adext
You can give the index as well if you have all the sheet names in GetSheets variable.
You have to write the expression as
Excel.Sheet(GetSheets(0))
Thanks
Happy Automation! ![]()
Try this way.
For Each Sheet in Workbook activityCurrentItemIndex is same as your desired sheet indexWrite Cell this way.
Full solution:
Thanks,
Ashok ![]()
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.