Fetch Autofilter options



Hi to all,

I didnt knew what to type to search and therefore am posting this
request.


Whenever we autofilter a range and select any field then we get a
dropdown list of unique entries in that field.


1. If there is only one item then how to get that.


eg.


A
5
5
5
5


If I autofilter on column A then it will only contain 5. How can I
get
this value using VBA


2. how to get all of the the autofilter options?
eg.
A
1
2
3
1
2
3
1
2
3
if I autofilter on column A then the available options will be


A
1
2
3


howto get them using VBA.


Kindly advice.


With Regards


Ashish Sharma

.



Relevant Pages

  • Re: Get Autofilter options (VBA)
    ... Sub uniques_from_A ... If I autofilter on column A then it will only contain 5. ... how to get all of the the autofilter options? ... howto get them using VBA. ...
    (microsoft.public.excel.misc)
  • Re: Duplikate in Excel Sheet mit VBA anzeigen
    ... Klaus Wiesner schrieb am 16.01.2005 ... > den die Suche angewandt werden soll, vorbestimmen könnte. ... Ich würde einen Ansatz per Autofilter oder gar Spezialfilter wählen. ... Beide Filter sind auch per VBA automatisierbar, wobei ich denke, dass dies ...
    (microsoft.public.de.excel)
  • Re: [VBA] Zeile auslesen, in der Autofilter gesetzt sind
    ... >> wie kann ich per VBA die Zeile ermitteln, in welcher Autofilter gesetzt ... Statusleiste zu umgehen, mache ich das mit VBA. ...
    (microsoft.public.de.excel)
  • Re: Schutz aber Makros erlauben?
    ... und aktiviere den Autofilter bevor du das Blatt schützt ... Du meinst nicht den VBA ... schreibe einfach im VBA Editor Protect ... Sub Workbook_Open ...
    (microsoft.public.de.excel)
  • RE: using autofilter data
    ... You'll see that the VBA calls out an autofilter criteria. ... lists which show at the top of the filtered range? ... dropdown lists put on a different worksheet than that containing the ...
    (microsoft.public.excel.worksheet.functions)