I have attached my Excel file and I wish to save the highlighted information from page 2 in a datatable.
export.xlsx (9.5 KB)
Please share the approach you tried and issue you are facing if any.
Reading excel in datatable and using for each until i reach 11th cell. but the if condition doesnt work
@parnalmahavir.patni what issue you are facing?
Read excel–>store in datatable–>use datatable as per the requirement
You can’t really check string is greater than another string.
Try this condition instead
CInt(str_cellno.ToString) > 10
The range is dynamic. So i cant use the cell numbers
@ashokkarale I cant access the last value of the row from the excel.
The for each row terminates one row before the last one.
My data table from excel read range has all the rows in it.
Check if your dt_ReportRaw
have that last row.
Remember row numbers starts from zero. So your first row would be 0th row and your last row would be total rows -1
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.