Column Read Range

HI Team,
Reading excel file
Column 1 2 3 4 5 6 7 8 9 10
Row x x x x x x x x x x

Using Read Range activity
In Range tried with “D1:J1” which is not working
I want to read column wise. Help needed

Hi

  1. Add a Read Range Activity - In the Range property, specify "D:J"
  2. Ensure Add Headers is checked if the Excel sheet has headers.
    Regards
    Gokul

Thanks. Gokul. But it’s reading the column 1 2 3 4 5… instead of x. Attached screenshot. This excel having values from A to J only.

Hi @Honda ,

in your for each you given dt_cols.Columns that means it will get only columnname.

if you want row data you can just pass dt_cols.

May be this will helps.

Hi

  1. Use a For Each activity to loop through the DataTable.Columns
  2. Inside the loop, Use For each activity DataTable.Row
For Each column As DataColumn In DataTable.Columns
    For Each row As DataRow In DataTable.Rows
        Console.WriteLine(row(column.ColumnName).ToString)
    Next
Next