Read row until row blank

I want to read row until row blank (red text)
input2.xlsx (9.0 KB)

image

Please guide me about it.

First count up to blank
then use that count in the range simple

Regards
Chethan P



image

2 Likes

Hi @fairymemay

Please try this

dtTable.AsEnumerable.TakeWhile(Function(row) row.ItemArray.Any(function(col) not string.IsNullOrEmpty(col.ToString))).CopyToDataTable

image

image

Thanks

2 Likes

@fairymemay did the issue got resolved?

Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.