Change date format in string?
Does it not work then. I ask because if the dates are just formatted
differently, the underlying date values are the same.
--
HTH
RP
(remove nothere from the email address if mailing direct)
"Ed" wrote in message
...
I have a macro which AutoFilters a date column. The spreadsheet is now
being created differently, and the dates are coming up in a different
format. Currently, I have
If MyTarget = "d" Then
Selection.AutoFilter Field:=5, Criteria1:="=20020703", _
Operator:=xlAnd, Criteria2:="<=20030616"
End If
Is there any way to change these dates to "03-Jul-02" on the fly? Or do I
need to go into the macro and redo the date for every If?
Ed
|