Hello,
I am trying to clear the range in Excel file from column B2 till last entry in column P and I don’t want to use Excel Application scope. Can anyone please support to achieve this.
Hello,
I am trying to clear the range in Excel file from column B2 till last entry in column P and I don’t want to use Excel Application scope. Can anyone please support to achieve this.
One way of doing is use Assign activity and Create a temp Datatable Variable let’s say TempVariable
Now write as TempVariable = OrginalDatatableVariable.Clone
Above will copy the schema to the TempVariable
Now use Write Range activity and pass TempVariable this will keep the headers only
Hope this may help you
Thanks
Hi @nilesh.mahajan ,
-You can use Read range activity store the excel file.
-Create a Variable of Array of Data row (System.Data.DataRow).
Hope it makes some help to you,
Hello Srini, thnx for help.
I have tried this but unfortunately it is not doing any changes in file, it’s just update the file edit time but no changes happened.
Also you can try with VBA code
Check below thread for your reference
Hope this may help you
Thanks