Hi,
I have an Excel file which contains only one row at the moment.
I want to loop through that row and if I find Y as a value, I want to take the header text for that specific field.
Read the excel within a data table (e.g Excel Application Scope / read range) - dtData
Then use an assign activity:
arrColNames =
(From x in Enumerable.Range(0, dtData.Columns.Count)
Where dtData.Rows(0)(x).toString.Trim.Equals("Y")
Select c = dtData.Columns(x).ColumnName).toArray