alexthecamel
New Member
- Joined
- Jul 6, 2004
- Messages
- 47
Hi All,
Quite embarrassed with this one but can't for the life of me fix it.
I have a VBA script that works perfectly when triggered as a Macro, but fails when triggered by Worksheet_Activate.
The line that fails is:
dest.Range("A6:M1000").AutoFilter Field:=pn.Column, Criteria1:=""
Where 'dest' is a previously defined Worksheet and pn is previously defined Range (single cell reference).
The error I get is:
"method 'Find' of object 'Range' failed"
Any gentle kicks in the right direction would be much apprecaited.
Thanks in advance
Quite embarrassed with this one but can't for the life of me fix it.
I have a VBA script that works perfectly when triggered as a Macro, but fails when triggered by Worksheet_Activate.
The line that fails is:
dest.Range("A6:M1000").AutoFilter Field:=pn.Column, Criteria1:=""
Where 'dest' is a previously defined Worksheet and pn is previously defined Range (single cell reference).
The error I get is:
"method 'Find' of object 'Range' failed"
Any gentle kicks in the right direction would be much apprecaited.
Thanks in advance