How do i delete empty rows after i read range?

Hi @mark_rajkumar1 ,

An Alternate using Linq :

DT = DT.AsEnumerable.Where(Function(x)Not(x.ItemArray.All(Function(x)String.IsNullOrWhiteSpace(x.ToString)))).CopyToDatatable

Here, DT is your Datatable variable.

For Handling Errors related to Direct CopyToDatatable, Check the below post :