LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Combining 2 autofilters with an OR

I have 2 autofilters and I want to combine them with an OR
Here are the autofilters (they both are currently filtering between times)
Sub time8_11()
'
' time8_11 Macro
' Macro recorded 9/18/2003 by
'

'
Selection.AutoFilter Field:=32, Criteria1:=".333", Operator:=xlAnd, _
Criteria2:="<=.458"
End Sub
Sub time4_930()
'


' time4_930 Macro
' Macro recorded 9/18/2003 by
'

'
Selection.AutoFilter Field:=32, Criteria1:=".6666", Operator:=xlAnd, _
Criteria2:="<=.8953"
End Sub

Basically, it would be like:

Selection.AutoFilter Field:=32, (Criteria1:=".6666", Operator:=xlAnd, _
Criteria2:="<=.8953"), Operator:=xlOr, (Criteria1:=".333",
Operator:=xlAnd, _
Criteria2:="<=.458")
purpose is to look at records with times between (8am and 11am) or (4pm and
9:30pm)
But this did not work...



Thanks!
Bruce





 
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
AutoFilters Joli Excel Worksheet Functions 1 March 21st 06 09:14 PM
Freezing Autofilters Elcoholic Excel Worksheet Functions 0 September 23rd 05 06:38 AM
How to set up AutoFilters? MS Suzanne Excel Worksheet Functions 1 June 30th 05 03:53 AM
autofilters Diego Villaseñor Fernández Excel Worksheet Functions 0 January 13th 05 11:27 PM
Userforms and autofilters - Autofilters don't seen to work with userform No Name Excel Programming 3 August 28th 03 05:42 PM


All times are GMT +1. The time now is 05:44 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"