Thanks to both Neil and Paul. The VBA file Neil posted is similar to what I need, except I would need the result in a sorted order, that is why I was thinking whether I can directly copy the autofilter's choices. But given Neil's result, I think it is fine as I can easily sort the unique list.
Thank you so much!!! On Sep 10, 2:20 am, neil johnson <neil.jh...@googlemail.com> wrote: > ---------- Forwarded message ---------- > From: Meimei <xxu8810...@gmail.com> > Date: Fri, Sep 10, 2010 at 6:55 AM > Subject: $$Excel-Macros$$ How to copy the list of autofilter selection? > To: MS EXCEL AND VBA MACROS <excel-macros@googlegroups.com> > > Hi all, > > I have a question about copy the list of unique values generated by > autofiltering in VBA. For example, if in column A I have cells listing > some animal names, dog, cat, dog, sheep, cat, dog, cat, cat, dog, > sheep. If I do an autofiltering on column A, the autofilter will have > the selection of all, (Total), cat, dog, sheet. My question is whether > there is a way to copy this autofilter's selections to other cells? > > Thanks a lot! > > -- > ---------------------------------------------------------------------------------- > Some important links for excel users: > 1. Follow us on TWITTER for tips tricks and links > :http://twitter.com/exceldailytip > 2. Join our LinkedIN group @http://www.linkedin.com/groups?gid=1871310 > 3. Excel tutorials athttp://www.excel-macros.blogspot.com > 4. Learn VBA Macros athttp://www.quickvba.blogspot.com > 5. Excel Tips and Tricks athttp://exceldailytip.blogspot.com > > To post to this group, send email to excel-macros@googlegroups.com > > <><><><><><><><><><><><><><><><><><><><><><> > HELP US GROW !! > > We reach over 7000 subscribers worldwide and receive many nice notes about > the learning and support from the group.Let friends and co-workers know they > can subscribe to group athttp://groups.google.com/group/excel-macros/subscribe > > > > vba filter.xls > 31KViewDownload -- ---------------------------------------------------------------------------------- Some important links for excel users: 1. Follow us on TWITTER for tips tricks and links : http://twitter.com/exceldailytip 2. Join our LinkedIN group @ http://www.linkedin.com/groups?gid=1871310 3. Excel tutorials at http://www.excel-macros.blogspot.com 4. Learn VBA Macros at http://www.quickvba.blogspot.com 5. Excel Tips and Tricks at http://exceldailytip.blogspot.com To post to this group, send email to excel-macros@googlegroups.com <><><><><><><><><><><><><><><><><><><><><><> HELP US GROW !! We reach over 7000 subscribers worldwide and receive many nice notes about the learning and support from the group.Let friends and co-workers know they can subscribe to group at http://groups.google.com/group/excel-macros/subscribe