sandysharma
Member
Hi Everyone,
I am trying to remove duplicate rows from an excel sheet using the following code:
activesheet.range("a1:d100").removeduplicates columns:=array(1,2,3,4), header:=xlyes
This code is running fine however I was wondering if there is any way that I dont mention the number of columns here and it should automatically take total number of columns in the range and remove duplicates based on total number of columns...because in this way I will have to amend the code if I add one more column to the data....Please suggest...
Great thanks in advance!!
Regards,
Sandeep
I am trying to remove duplicate rows from an excel sheet using the following code:
activesheet.range("a1:d100").removeduplicates columns:=array(1,2,3,4), header:=xlyes
This code is running fine however I was wondering if there is any way that I dont mention the number of columns here and it should automatically take total number of columns in the range and remove duplicates based on total number of columns...because in this way I will have to amend the code if I add one more column to the data....Please suggest...
Great thanks in advance!!
Regards,
Sandeep