PC Review


Reply
Thread Tools Rate Thread

How Can I gets list of all criteria in autofilter for any column

 
 
=?Utf-8?B?VmFsZXJ5?=
Guest
Posts: n/a
 
      4th Oct 2007
Hello.
I nee a help.
Some days i in searches of the decision of this'
I don't know How to get list all criteria currently avaliable for any
columns where is autofilter. Exel as that does it I don't know how do it.
I need this to read all avaliable values and write in to range.
Thx
 
Reply With Quote
 
 
 
 
papou
Guest
Posts: n/a
 
      4th Oct 2007
Hello Valery
See VBA help on object "Filters" , a sample code is supplied there.

HTH
Cordially
PAscal

"Valery" <(E-Mail Removed)> a écrit dans le message de news:
F91A684F-AEDC-4C5A-A85F-(E-Mail Removed)...
> Hello.
> I nee a help.
> Some days i in searches of the decision of this'
> I don't know How to get list all criteria currently avaliable for any
> columns where is autofilter. Exel as that does it I don't know how do
> it.
> I need this to read all avaliable values and write in to range.
> Thx



 
Reply With Quote
 
=?Utf-8?B?VmFsZXJ5?=
Guest
Posts: n/a
 
      4th Oct 2007
I have found nothing there (VBA help) or might you misunderstand me?
I made save screen of exels sheet
Look this: http://aljany.com/Criterias.jpg

Thx.

"papou" wrote:

> Hello Valery
> See VBA help on object "Filters" , a sample code is supplied there.
>
> HTH
> Cordially
> PAscal
>
> "Valery" <(E-Mail Removed)> a écrit dans le message de news:
> F91A684F-AEDC-4C5A-A85F-(E-Mail Removed)...
> > Hello.
> > I nee a help.
> > Some days i in searches of the decision of this'
> > I don't know How to get list all criteria currently avaliable for any
> > columns where is autofilter. Exel as that does it I don't know how do
> > it.
> > I need this to read all avaliable values and write in to range.
> > Thx

>
>
>

 
Reply With Quote
 
Steve G
Guest
Posts: n/a
 
      5th Oct 2007
Valery--

JD Walkenbach's web site has information on this topic. Mr.
Walkenbach writes:


One problem with AutoFiltering is that you can't tell which criteria
are in effect. Stephen Bullen developed a custom VBA worksheet
function that displays the current AutoFilter criteria in a cell. The
instructions that follow are for Excel 97 or later.


Here is the web site to get the code.

http://www.j-walk.com/ss/excel/usertips/tip044.htm

Steve G

 
Reply With Quote
 
=?Utf-8?B?VmFsZXJ5?=
Guest
Posts: n/a
 
      5th Oct 2007
Thank you Steve
I read this http://www.j-walk.com/ss/excel/usertips/tip044.htm but it's not
that
I'll now one more try explain my problem
link to file http://aljany.com/Criterias_.jpg
and my example file is here http://aljany.com/My_Book.xls
The first column contains years, the second contains month. On these columns
Autofilter is applied. There is a form of input of filter for users. In it
we choose a year, for example 1977. Excel will filter on a year the first
column and will rotin in Autofilter in the second column collection from
months, for example «august, september, june» are avaliable. How to get this
avaliable criteria values? If the program chooses in form input in listbox
these three months, and I will choose july for example. Now in form input an
only one month - «july» will appear in listbox. And I need all of variants
months on 1977 year. How to take them all avaliable criteria from the list of
Autofilter?
Thx.

"Steve G" wrote:

> Valery--
>
> JD Walkenbach's web site has information on this topic. Mr.
> Walkenbach writes:
>
>
> One problem with AutoFiltering is that you can't tell which criteria
> are in effect. Stephen Bullen developed a custom VBA worksheet
> function that displays the current AutoFilter criteria in a cell. The
> instructions that follow are for Excel 97 or later.
>
>
> Here is the web site to get the code.
>
> http://www.j-walk.com/ss/excel/usertips/tip044.htm
>
> Steve G
>
>

 
Reply With Quote
 
=?Utf-8?B?VmFsZXJ5?=
Guest
Posts: n/a
 
      5th Oct 2007
How to get this?
In fact Excel it as did do that?
Help me please in it

"Valery" wrote:

> Thank you Steve
> I read this http://www.j-walk.com/ss/excel/usertips/tip044.htm but it's not
> that
> I'll now one more try explain my problem
> link to file http://aljany.com/Criterias_.jpg
> and my example file is here http://aljany.com/My_Book.xls
> The first column contains years, the second contains month. On these columns
> Autofilter is applied. There is a form of input of filter for users. In it
> we choose a year, for example 1977. Excel will filter on a year the first
> column and will rotin in Autofilter in the second column collection from
> months, for example «august, september, june» are avaliable. How to get this
> avaliable criteria values? If the program chooses in form input in listbox
> these three months, and I will choose july for example. Now in form input an
> only one month - «july» will appear in listbox. And I need all of variants
> months on 1977 year. How to take them all avaliable criteria from the list of
> Autofilter?
> Thx.
>
> "Steve G" wrote:
>
> > Valery--
> >
> > JD Walkenbach's web site has information on this topic. Mr.
> > Walkenbach writes:
> >
> >
> > One problem with AutoFiltering is that you can't tell which criteria
> > are in effect. Stephen Bullen developed a custom VBA worksheet
> > function that displays the current AutoFilter criteria in a cell. The
> > instructions that follow are for Excel 97 or later.
> >
> >
> > Here is the web site to get the code.
> >
> > http://www.j-walk.com/ss/excel/usertips/tip044.htm
> >
> > Steve G
> >
> >

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
cycling through all the possible criteria in an autofilter column Graham Y Microsoft Excel Programming 2 23rd Jul 2008 12:47 PM
Use criteria in an Advanced Autofilter's single column Chilidog Microsoft Excel Programming 3 12th Feb 2008 07:54 PM
Multiple column autofilter criteria? Possible? Microsoft Excel Programming 0 29th Dec 2004 05:43 PM
Filter macro using criteria in a list (not autofilter drop down list) Jeff Smith Microsoft Excel Worksheet Functions 0 29th Jul 2004 10:06 PM
3 Criteria on one column in AutoFilter? CLR Microsoft Excel Programming 2 27th Feb 2004 02:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 PM.