I wanted to apply this video by BotsDNA “https://youtu.be/SlLMDPv4ZUk?feature=shared” - and skip the first 3 rows of my excel spreadsheet / make the bot treat the 1st 3 rows as Headers so that the bot ignores them. (I didn’t succeed).
I need this for a data template that has to have the top 3 rows untouched by the bot.
Update: I need the Bot to ignore the 1st 3 rows of data in the excel spreadsheet - I don’t want to use a solution that needs me to write the spreadsheet into a data table - the spreadsheet is the data table. The goal is not to use BotsDNA’s solution - the goal is to ideally make the bot think the top 3 rows are Headers - so that it ignores them.
I’m more about finding the quickest route to functionality - no matter how unconventional the solution is - even if features are being used in strange ways they weren’t intended to be used in.
Update 2:
Solution is to replace “Excel.Sheet(“Sheet1”)” for the for each row activity etc (with Headers enabled), with “Excel.Sheet(“Sheet1”).Range(“3:3”)” - the solution from Henrique Lima uses 1 column only.
Yes - but IN what? What am I assigning it to? The Entire Spreadsheet isn’t a data table option that I can apply the “DT.AsEnumerable().Skip(3).CopyToDataTable()” to
If it is an excel then use the read range workbook activity to read the excel and store in a datatable, for that datatable use the below expression to skip the first 3 rows.
DT = DT.AsEnumerable().Skip(3).CopyToDataTable()
Then Write the datatable to excel by using Write range workbook activity.