ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Filter data based on Cell Value - "" Syntax required (https://www.excelbanter.com/excel-programming/435453-filter-data-based-cell-value-syntax-required.html)

Tracey

Filter data based on Cell Value - "" Syntax required
 
Hi All,

I have found the following code to AutoFilter based on the value of a
certain cell:-

Criteria1:=Worksheets(1).Range("E9").Value (Thks to Tom Olgivie!!)

Can anybody provide the correct syntax required to change this code to be
the equivalent of a "greater than" filter instead of the "equal to" that it
is currently?
--
Tracey @ BrisVegas

JBeaucaire[_131_]

Filter data based on Cell Value - "" Syntax required
 
Try this:

Criteria1:="=" & Worksheets(1).Range("E9").Value

Does that work for you?
--
"Actually, I *am* a rocket scientist." -- JB
(www.MadRocketScientist.com)

Your feedback is appreciated, click YES if this post helped you.


"Tracey" wrote:

Hi All,

I have found the following code to AutoFilter based on the value of a
certain cell:-

Criteria1:=Worksheets(1).Range("E9").Value (Thks to Tom Olgivie!!)

Can anybody provide the correct syntax required to change this code to be
the equivalent of a "greater than" filter instead of the "equal to" that it
is currently?
--
Tracey @ BrisVegas


Jacob Skaria

Filter data based on Cell Value - "" Syntax required
 
Criteria1:="" & Worksheets(1).Range("E9").Value

"Tracey" wrote:

Hi All,

I have found the following code to AutoFilter based on the value of a
certain cell:-

Criteria1:=Worksheets(1).Range("E9").Value (Thks to Tom Olgivie!!)

Can anybody provide the correct syntax required to change this code to be
the equivalent of a "greater than" filter instead of the "equal to" that it
is currently?
--
Tracey @ BrisVegas


Tracey

Filter data based on Cell Value - "" Syntax required
 
Now works a treat -- thanks to both of you !!
--
Tracey @ BrisVegas




All times are GMT +1. The time now is 12:33 PM.

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