Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Autofilter input

Hi,

you could do something like:

x = Sheets("Sheet1").Range("A1")
Selection.AutoFilter Field:=1, Criteria1:=x

Abdul Salam

-----Original Message-----
Hello,

I have a question:
Is it possible to autofilter based on a specific cell
input?

The line normally is:
Selection.AutoFilter Field:=1, Criteria1:="ABC"

However if I need BCD and this is located in Cell A1 you
would could something like:
Selection.AutoFilter Field:=1, Criteria1:="A1" or A1

However this doesn't work, does anybody know how it can
work and also with the field chooser?

Thank you very much,
Hans
.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Autofilter input

Dear Abdul,

It works! Thank you very much

Kind regards,
Hans

-----Original Message-----
Hi,

you could do something like:

x = Sheets("Sheet1").Range("A1")
Selection.AutoFilter Field:=1, Criteria1:=x

Abdul Salam

-----Original Message-----
Hello,

I have a question:
Is it possible to autofilter based on a specific cell
input?

The line normally is:
Selection.AutoFilter Field:=1, Criteria1:="ABC"

However if I need BCD and this is located in Cell A1 you
would could something like:
Selection.AutoFilter Field:=1, Criteria1:="A1" or A1

However this doesn't work, does anybody know how it can
work and also with the field chooser?

Thank you very much,
Hans
.

.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
excel 2007 autofilter change to 2003 autofilter functionality? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 10:05 PM
2007 excel autofilter back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 3 April 19th 10 08:11 PM
2007 excel autofilter change back to 2003 autofilter? jonnybrovo815 Excel Discussion (Misc queries) 1 April 19th 10 05:53 PM
2007 Autofilter worse than 2003 Autofilter jsky Excel Discussion (Misc queries) 9 October 31st 07 12:14 AM
=SUMIF(Input!H2:H718,AZ19,Input!E2:E685)AND(IF ALex Excel Worksheet Functions 2 March 14th 05 09:19 PM


All times are GMT +1. The time now is 11:19 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"