Sorting unique fields in a list...

UKPhil

New Member
Joined
Jul 25, 2002
Messages
49
I have a list of over 200 names which contains many duplicates. Im looking for the quickest way to sort these names into a list so that each only appears once. This will have to be done in an auto_open macro each time the file is opened. I'm looking for speed because this macro already does other stuff which takes up a bit of time. Any suggestions?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
1. Turn on the macro recorder.
2. Select your list and choose Data, Filter, Advanced Filter from the menu.
3. Click Copy to another location, specify the location, click Unique records only and click OK.
4. Select the new list and choose Data Sort from the menu and click OK.
5. Turn off the macro recorder.
6. That code should get you started.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top