Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Excel/VB question

Status
Not open for further replies.

grierfield

Technical User
Dec 18, 2002
55
US
This is an excel spreadsheet
I want to select data where the "Culture Date" is > – this isent quite working


Private Sub CommandButton1_Click()
With ActiveSheet
If Not .AutoFilterMode Then .[H2].AutoFilter

Range("H2").Select
Selection.AutoFilter
Selection.AutoFilter Field:= 6, Criteria1 is > "12/31/2008"

End With

End Sub
 
What about something like this ?
Selection.AutoFilter Field:=6, Criteria1:=">12/31/2008"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top