I was given a macro for this but it doesn't seem to work. Hopefully someone can help.
column A will contain a list of telephone numbers entered in this format: (xxx) yyy-zzzz which is how it would appear in the formula bar if the cell were selected. I need a macro that would eliminate all duplicates but the most important aspect would be to always retain the first entry of each unique number in column A and only eliminate any and all subsequent duplicate entries of same numbers.
Secondly, if possible, although not critical, would be to show in column C those duplicate numbers that were eliminated from column A when the Macro runs and leave column A with only unique numbers and no blank spaces between the entries.
Below is what I was given that doesn't seem to work and please note we need to use PC, Windows 7 and Excel 2000 for this.
Sub test()
ActiveSheet.Range("$A$1:$A$10").RemoveDuplicates Columns:=1, Header:=xlNo
End Sub
column A will contain a list of telephone numbers entered in this format: (xxx) yyy-zzzz which is how it would appear in the formula bar if the cell were selected. I need a macro that would eliminate all duplicates but the most important aspect would be to always retain the first entry of each unique number in column A and only eliminate any and all subsequent duplicate entries of same numbers.
Secondly, if possible, although not critical, would be to show in column C those duplicate numbers that were eliminated from column A when the Macro runs and leave column A with only unique numbers and no blank spaces between the entries.
Below is what I was given that doesn't seem to work and please note we need to use PC, Windows 7 and Excel 2000 for this.
Sub test()
ActiveSheet.Range("$A$1:$A$10").RemoveDuplicates Columns:=1, Header:=xlNo
End Sub