Hello,
in here, i have sheet want get range, the table always begin form line 32 of collum A to N and dynamic below, so, how to get range of grid have value below by theway dynamic ?
example: i want get range A32:N42 but use dynamic
Read the whole sheet without header and remove all the rows before the header of actual datatable. And create a datatable and load all the rows from input datatable to output datatable.
Is the data above is in table table format?
If it you can use to get table range activity or use modern activities, it will auto detect the table name if you read entire sheet
Assuming that you know where the table start (A30 i think based on your example) it is so simple:
Use Activity UiPath.Excel.Activities.ReadRange
Input Argument RANGE put Start Cell Position (like “A30”)
In addition you can check AddHearders (if you want to extract the first Row as Headers)
thank for answer,
but i just want get data in one range, i dont want get data below first blank row begin row A30, exam A30 to N*(exam N42 ,…) not get data from line 43 to below.
I have idea quite stupid but it work with me.
Assuming i want get range from A30 to N40(This is dynamic variable)
i get value from cell A32 and count for each row until matches first blank row then +2 to count. example: A32 to 40 is 8 then +2 is 10. i assign to LastRow=30+10
i will create a variable Temp=“A30:N”+LastRow.ToString . and it done!