
Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
Use 2007 not 07

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Hi Max
>
[quoted text clipped - 19 lines]
>>
>> Max
Just to add to Ron's response...
Ron sent me this message in a private email a few months ago:
See also Stephen his Autofilter notes in this PDF
http://www.oaltd.co.uk/ExcelProgRef/Ch22/ProgRefCh22.htm
The AutoFilter method of a Range object is a very curious beast. We are forced
to pass it strings for its filter criteria and hence must be aware of its string
handling behaviour. The criteria string consists of an operator (=, >, <, >=
etc.) followed by a value. If no operator is specified, the "=" operator is
assumed. The key issue is that when using the "=" operator, AutoFilter performs
a textual match, while using any other operator results in a match by value.
This gives us problems when trying to locate exact matches for dates and
numbers. If we use "=", Excel matches on the text that is displayed in the cell,
i.e. the formatted number. As the text displayed in a cell will change with
different regional settings and Windows language version, it is impossible for
us to create a criteria string that will locate an exact match in all locales.
There is a workaround for this problem. When using any of the other filter
criteria, Excel plays by the rules and interprets the criteria string according
to US formats. Hence, a search criterion of ">=02/01/2001" will find all dates
on or after 1st Feb, 2001, in all locales. We can use this to match an exact
date by using two AutoFilter criteria. The following code will give an exact
match on 1st Feb, 2001 and will work in any locale:
Range("A1:D200").AutoFilter 2, ">=02/01/2001", xlAnd, "<=02/01/2001"
> Hi Max
>
[quoted text clipped - 24 lines]
> >
> > Max

Signature
Dave Peterson
Ron de Bruin - 16 Dec 2007 10:15 GMT
Hi Dave
Good morning
Thanks for posting the notes I send you (will remember to do it also the next time)
I send a bug report yesterday about it.
If you record a macro when you do it manual the macro recorder record the system
Date format and that is not working when you have another Date format as US on your system.
You must change it in the US date format MM/DD/YYYY then
Confusing

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Just to add to Ron's response...
>
[quoted text clipped - 52 lines]
>> >
>> > Max
Dave Peterson - 16 Dec 2007 15:38 GMT
You should move to the USA and just live with one date format <vvbg>.
> Hi Dave
>
[quoted text clipped - 75 lines]
> >
> > Dave Peterson

Signature
Dave Peterson
Ron de Bruin - 16 Dec 2007 16:29 GMT
> You should move to the USA and just live with one date format <vvbg>.
Do you have a room for me Dave <g>

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> You should move to the USA and just live with one date format <vvbg>.
>
[quoted text clipped - 77 lines]
>> >
>> > Dave Peterson
Gord Dibben - 16 Dec 2007 17:52 GMT
Move to Canada. We'll take anybody<g>
Gord
>> You should move to the USA and just live with one date format <vvbg>.
>
>Do you have a room for me Dave <g>
Ron de Bruin - 16 Dec 2007 18:06 GMT
> Move to Canada. We'll take anybody<g>
LOL
When I was 8 years old I visit Canada with my parents.
It is a beautiful country Gord.

Signature
Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm
> Move to Canada. We'll take anybody<g>
>
[quoted text clipped - 3 lines]
>>
>>Do you have a room for me Dave <g>
Dave Peterson - 16 Dec 2007 18:11 GMT
And they're very polite!
Do you know how to get 20 Canadian's out of a pool?
You ask them.
> > Move to Canada. We'll take anybody<g>
>
[quoted text clipped - 7 lines]
> Regards Ron de Bruin
> http://www.rondebruin.nl/tips.htm