Hi!
I have this code:
Sub Macro4()
'
' Macro4 Macro
'
'
Range("A1").Sel ect
Selection.AutoF ilter
ActiveSheet.Ran ge("$A$1:$E$25" ).AutoFilter Field:=1, Criteria1:="16/08/2008", _
Operator:=xlAnd
End Sub
Instead of having to insert "16/08/2008" as Criteria1, I would like to have a variable in there corresponding to the maximum value of a column containing dates.
Could anyone help? That would be extremely helpful and very much appreciated...
I have this code:
Sub Macro4()
'
' Macro4 Macro
'
'
Range("A1").Sel ect
Selection.AutoF ilter
ActiveSheet.Ran ge("$A$1:$E$25" ).AutoFilter Field:=1, Criteria1:="16/08/2008", _
Operator:=xlAnd
End Sub
Instead of having to insert "16/08/2008" as Criteria1, I would like to have a variable in there corresponding to the maximum value of a column containing dates.
Could anyone help? That would be extremely helpful and very much appreciated...
Comment