ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Quick question (https://www.excelbanter.com/excel-programming/313156-quick-question.html)

DB100[_15_]

Quick question
 

Hi Guys

Can anyone tell what the additional code would be to set this aut
filter to a cell reference. So that when the Macro runs it filters th
contents of the Cell A1 for example

Thanks

Selection.AutoFilter


Selection.AutoFilter Field:=1, Criteria1:="a2"

Selection.AutoFilter Field:=19, Criteria1:="a1"

Thank

--
DB10
-----------------------------------------------------------------------
DB100's Profile: http://www.excelforum.com/member.php...nfo&userid=917
View this thread: http://www.excelforum.com/showthread.php?threadid=26814


Juan Pablo González

Quick question
 
Selection.AutoFilter Field:=19, Criteria1:=Range("A1").Value

--
Regards

Juan Pablo González

"DB100" wrote in message
...

Hi Guys

Can anyone tell what the additional code would be to set this auto
filter to a cell reference. So that when the Macro runs it filters the
contents of the Cell A1 for example

Thanks

Selection.AutoFilter


Selection.AutoFilter Field:=1, Criteria1:="a2"

Selection.AutoFilter Field:=19, Criteria1:="a1"

Thanks


--
DB100
------------------------------------------------------------------------
DB100's Profile:

http://www.excelforum.com/member.php...fo&userid=9176
View this thread: http://www.excelforum.com/showthread...hreadid=268145





All times are GMT +1. The time now is 09:50 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com