Hello guys, as the Excel file shows the ID is from A to E this time, how can I show the range A-E in the Excel file by using UiPath, when the robot reads other Excel files, the range may vary for example A-Z, A-T, etc. How can I show the range? Thank you for the help!
β Use Read Range Workbook to read the excel and store it in a datatable say Dt
.
β Use the below syntaxes in Assign activity:
First= Dt.AsEnumerable().Select(Function(row) row.Field(Of String)("ID")).FirstOrDefault()
Last= Dt.AsEnumerable().Select(Function(row) row.Field(Of String)("ID")).LastOrDefault()
First
and Last
variables are of DataType System.String
β You can print that in Message box by below syntax:
"Range= "+First+"-"+Last
Regards
Thanks for your help!!!
1 Like
Youβre welcome @CHAN_Hiu_Fung_Victor_Stud
Happy Automation
Regards
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.