Getting the sheet names in an Excel File dynamically using Modern Excel

Good Day,

May I know how to get the sheet names in an Excel File dynamically using Modern Excel?


image

Kindly see below attached files for the sample Excel file and .xaml file. Thank you.

Main.xaml (7.5 KB)
Test_Excel_File1.xlsx (10.2 KB)

Best regards,
Robert

@RobertRussell_Monsalud

Use Get workbook Sheets activity to get the sheets excel dynamically.

or use for each excel sheet

In the message box give
CurrentSheet.Name it will give the name of the current sheet

1 Like

there is activity name calledd get sheet name
by using that activity you can get sheet name

1 Like

Hi @RobertRussell_Monsalud

1 Like

@RobertRussell_Monsalud
xaml


Output

Hope it helps!!

1 Like

Hi @RobertRussell_Monsalud

Use Get workbook sheets activity

image

or

1 Like

Hi @RobertRussell_Monsalud

Inside Use excel file activity you can use the For each excel sheet activity which iterates the sheets in the excel.
image

Hope it helps!!

Hello Robert,
You can use ‘Get Workbook Sheet’ activity which is available in Classic activities.
Regards

1 Like

Hi All @pravallikapaluri @rlgandu @Veera_Raj @vrdabberu @lrtetala @mkankatala @Akshay_B

Thank you so much for all of your help and inputs. I really appreciate it.

Best regards,
Robert

4 Likes

@RobertRussell_Monsalud

Your Welcome

Happy Automation!!

1 Like

Your Welcome , I hope you were able to solve it:)

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.