Re: Filter Date Field by month using VBA
- From: "Roger Govier" <roger@xxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 7 Mar 2006 18:05:16 -0000
Hi Stuart
You're not the silly one - it was me.
In copying and pasting, I wiped out the 1 after criteria in my posting
to you.
Glad you spotted it and got it all resolved.
--
Regards
Roger Govier
"Stuart Grant" <sagrantatbluewindotch> wrote in message
news:440db90d$1_2@xxxxxxxxxxxxxxxxxx
Roger
Oh silly me! As you will see in my previous messages. I had -
Selection.autofilter Fields:= 9, Criteria = Mon
It has to be Criteria1 not just Criteria, even if there is only one.
Works perfectly now. Thanks for your help.
Stuart
"Stuart Grant" <sagrantatbluewindotch> wrote in message
news:440d4df5$1_3@xxxxxxxxxxxxxxxxxx
Roger
Yes. autofilter is applied to all columns and the Month column is I
or 9.
Debug-AddWatch confirms Mon is an integer - in my trials 2.
I'm baffled.
I have to stop now but this afternoon I'll record a macro doing it
manually and see what comes.
Stuart
.
- References:
- Filter Date Field by month using VBA
- From: Stuart Grant
- Re: Filter Date Field by month using VBA
- From: Roger Govier
- Re: Filter Date Field by month using VBA
- From: Stuart Grant
- Re: Filter Date Field by month using VBA
- From: Roger Govier
- Re: Filter Date Field by month using VBA
- From: Stuart Grant
- Re: Filter Date Field by month using VBA
- From: Stuart Grant
- Filter Date Field by month using VBA
- Prev by Date: Re: hide and show columns using one control button
- Next by Date: Re: Referring to a field of a database of other ***
- Previous by thread: Re: Filter Date Field by month using VBA
- Next by thread: Performing multiple Find/Replaces All At Once?
- Index(es):