How can I filter a list with VBA?

C

ChipButtyMan

Hi,
I have a column of dates in no particular order. Some dates are
repeated over and over.
I want to return a list of all the different dates in ascending order
to the next adjacent column.
For example;

Dates Result
16/10/2008 12/10/2008
16/10/2008 13/10/2008
16/10/2008 15/10/2008
15/10/2008 16/10/2008
15/10/2008
12/10/2008
13/10/2008
16/10/2008
12/10/2008
16/10/2008

Thank you for your help.
 
D

dunnerca

Use Data Filter Advanced Filters. Indicate that you want to copy the data to
another location (click on the cell where you want it to go) and also make
sure you check the box "Unique Records Only". You don't need a criteria
range specified.

Kevin
 
D

dunnerca

Sorry I didn't give it to you in VBA (misread your post) but I'd just record
the advanced filter and take a look at the result.

Kevin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top