Excel macro

excel

#1

rowItem.Select.CopyToDataTable().DefaultView.ToTable(False, “User Name”, “Domain Name”)

What is the function of methods
CopyToDataTable() and DefaultView.ToTable()


#2

Hi @vikumars,

Refer these links for more details on those topics.

CopyToDataTable
https://msdn.microsoft.com/en-us/library/bb396189(v=vs.110).aspx

DefaultView.ToTable
https://msdn.microsoft.com/en-us/library/wec2b2e6(v=vs.110).aspx