I am trying to build a RPA with a for each file loop on excel file to get values from particular cell.
However, the sheet name is dynamic for each excel file, but all the excel files only contain 1 sheet at all.
May I know how to write the command to get the exact cell value from the sheet for each excel file? (I am using the excel process scope for processing)
Use a excel application scope and pass the filepath as input
From that scope itself we can get a output variable named out_workbook which is of type workbook
Now use a FOR EACH activity where pass the above variable out_workbook.GetSheets as input
And change the type argument as string
In property panel
Inside the loop use a READ CELL activity where mention the sheet name as item and mention the cell position from where you want the value and get the output as string variable
That’s it
Try using a message box if you would like to see the sheet names