Read range_1 read the whole datatable save in different Variable Dt1
Read range_2 Read only the column you want and pass the range as “A2:B”+(Dt1.rows.Count+1).tostring and save in diff var DT2
Output datatable DT2 and create your string variable UpperS
Str var = UpperS.ToUpper
Generate Datatable CSV Seperators and Comma as column seperators and store in a var and write in the excel in the range of “A2:B”+(Dt1.rows.Count+1).tostring
(From row In Dt_sampleData.AsEnumerable()
Let ls = row.ItemArray.Take(2).ToList()
Let ra = ls.ConvertAll(Function(a) a.ToString.ToUpper).Cast(Of Object).Concat(row.ItemArray.Skip(2)).ToArray()
Select Dt_result.Rows.Add(ra)).CopyToDataTable()
(From row In Dt_sampleData.AsEnumerable()
Let ra = New Object(){
Convert.ToString(row(0)).ToUpper,
row(1),
Convert.ToString(row(2)).ToUpper,
row(3)
}
Select Dt_result.Rows.Add(ra)).CopyToDataTable()