Write selective range

Hi,
I have a data table. I need to write only columns from A:P and skip the rest of the columns into an Excel. How to do that?

Thank you,

Hi @A_Learner

Check the below thread. This should help you.

Regards

@Parvathy
Thank you. Need more information on how to do this.

Hi @A_Learner

Way 1:

In Filter Data Table activity open the Configure Filter and give the respective column names you want keep within double quotes

and store the output in a new variable. Pass that data table variable in Write Range Workbook

Way 2:

You can below syntax also. It’s an linq query:

dt_Filtered = yourdatatable.defaultView.ToTable(False,"column name1", "column name2",......so on)

Give all your column names this will also work

Regards

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.