How to Display in textbox the last sheet in excel if we use get workbook sheets activity
in the picture, i would like to get the April 7 to be displayed in the text box

How to Display in textbox the last sheet in excel if we use get workbook sheets activity
in the picture, i would like to get the April 7 to be displayed in the text box
Hi @Joshua_Ducao,
Try this.
sheetsVariable(sheetsVariable.count).Tostring
Or
sheetsVariable.Last
Hope it helps.
Hi @Joshua_Ducao ,
Please add this below code in message box,
sheets.LastOrDefault
where, sheets → Output of the Get Workbook Sheets activity.
And let us know if its working for you?
sheetsVariable.Last Works but sheetsVariable(sheetsVariable.count).Tostring doesn’t, like it looking for a range of sort.
Thanks sheets.LastOrDefault works
Thanks for the solution
My bad, it should be sheetsVariable(sheetsVariable.count - 1).Tostring
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.