I am trying to insert row for in an excel file to a specific column. The excel file is in table design. In the table design to insert Row to a specifc range like B1:P1, what is the syntax i should add when i use insert row excel modern activity.
Please refer below screenshot, in this one, i have given reference as Excel1 to my excel file, then in insert rows activity, I selected the sheet by clicking on plus sign and navigating through the Excel1. when you hover on its name, it will show the sheets available and so on.
I am adding a row at row index 2. You can customize your details accordingly.
You can try below steps
Use read range workbook activity store it in variable say for example dtinputdata
Use assign activity dtInputdata.Rows.InsertAt(dtInputdata.NewRow(), 0) '0 = First Row, 1 = Second, etc like this
Then use write range to write
Hi @Anil_G@vhvinodsai , i have actually write a datatable into an excel. That excel is in a table design. So i need insert only one row to from column b10:p10 so the rest of cells will go down. This is the reason i am using insert row. I need syntax when handling excel which are in table design.
Please refer screenshot below. When you specify range, then "where " property should be set to either start or end, not specific index else it will throw error. I just inserted a row at range(D4:K4) and my row was inserted in that place, refer excel snapshot below.
I don’t think specifying the specific index for a table is possible not at least via this activity directly. It can only be inserted either at the beginning of the table or end of the table.