Hi All,
I have a excel containing many different ID, how can I put each ID into a new sheet?
I have attached excel for reference, sheet 1 is input and other sheets are expected result.
Please noticed that actually I won’t know how many ID will be contained in sheet 1, therefore I wont know how many worksheets should I create.
In case, maybe finally it only contains 2 different ID or contains 100 different ID.
Many thanks.testing.xlsx (13.7 KB)
Thanks but error occur in assigning DT2 = row.CopyToDataTable
ÇopyToDataTable’is not a member of 'System.Data.DataRow
Also I understand your concept but each ID may appear in many rows. Therefore we need to set condition to compare the value of first column
balupad14
(Balamurugan)
6
Hi @raymondhui
Can you check this . It may useful to copy data and convert to data table.
Regards
Balareva