Hi @Rishabh_Lakhera
I tried your solution, works fine while extracting the sheet name but further when i am trying to read the text for that sheet, i get the below error, please can you assist.
Are you trying to add a column?
Can you show me your workflow?
How are you extracting the value?
Hi,
Below is my workflow for Excel application scope,If it is not clear i will create a similar one and attach it.
I am not trying to add any column, i just want to read the data for each sheet name, so i have put the Read range in the for loop.
.
The error comes in Read range.
2nd doubt i have is that why the excel application scope is opening the xcel file in background, what if i donât want it to be opened in background!
Hi!
If you donât want the excel to work in background you can tick the visible property!
The error in read range is because you are using the same data table again and again for every sheet!
You will need to set it as new DataTable using an assign activity inside the sheetname for loop!

I hope this works

Change the type of âfor eachâ activity from object to string from the properties pane!
As for the second question, uncheck the âvisibleâ property from the properties pane of âexcel scope applicationâ activity!
This should work
HI @Niket_Ghai @Rishabh_Lakhera,
I am still getting the same error,
I am using the variable ExcelText and assigning new table to it and iterating for every new sheet name, still i get the same error and i also tried changing the type of âfor eachâ activity from object to string.
May be i am doing some stupidity:-(
Try ExcelText = New System.Data.DataTable
Could you attach the xaml file please?
SheetNames (1).xaml (10.4 KB)
Working for me
Try this workflow and check if this also gives the same error
Thanks @Niket_Ghai and @Rishabh_Lakhera.for your prompt replies.
The solution works perfectly for .xls and .xlsm files but i get same error for .xlsx files
.I hope the excel application scope is applicable for .xls,.xlsx as well as .xlsm files to.
Also, the bot by default reads the hidden sheet names as well, is there a way i can tell the bot not to read the hidden sheets?
What error does it gives when working with .xlsx files?
Same, as i was getting earlier
but i t works fine with .xls and .xlsm.
That is weird because it works perfectly fine for me when using .xlsx files!
Apologies!
It works fine for .xlsx and .xlsm, error comes for .xls file
Sorry for bothering.
Works exactly same for me as it did worked for .xlsx!
for hidden sheet problem refer to this, might help you

Thanks a lot for sparing your time, there must b some problem with that particular excel file of mine, i will sort it out.
Thanks again
Youâre welcome mate
Hi,
Here is an activity to get all the sheets name
Regards
Balamurugan.S