Hi all
I am very new to vba and i am trying to find a way on how to find duplicate data in any column range that you can specify and duplicates found should be copied into a new worksheet.
An example of what i want is lets say i have data from column A to E, when i run the macro a dialog box should open that prompts me to highlight the desired column range and from there checks for duplicates and copies this to a new worksheet.
Lets say in my column A i have the following data in the cells A1-A5:
A1 1 A2 1 A3 2 A4 3 A5 4
the number 1 is duplicated, so in the new sheet i expect to see the 1s in A1 and A2 copied in a new sheet in their separate respective cells A1 and A2. Same thing applies if i highlight multiple column data such as A to E etc.
I know probably this entirely possible through excel formula but i would really appreciate a solution in vba which works fast enough as i have thousands of rows of information.
Thanks in advance.
I am very new to vba and i am trying to find a way on how to find duplicate data in any column range that you can specify and duplicates found should be copied into a new worksheet.
An example of what i want is lets say i have data from column A to E, when i run the macro a dialog box should open that prompts me to highlight the desired column range and from there checks for duplicates and copies this to a new worksheet.
Lets say in my column A i have the following data in the cells A1-A5:
A1 1 A2 1 A3 2 A4 3 A5 4
the number 1 is duplicated, so in the new sheet i expect to see the 1s in A1 and A2 copied in a new sheet in their separate respective cells A1 and A2. Same thing applies if i highlight multiple column data such as A to E etc.
I know probably this entirely possible through excel formula but i would really appreciate a solution in vba which works fast enough as i have thousands of rows of information.
Thanks in advance.