EliseFreedman
Programmer
Hi There
I have a rather large spreadsheet
I am trying to create a macro to filter the named range in place using specified criteria. Those Criteria are saved further down in my spreadsheet in the format
Age Age
>=40 <=55
I am using the code
When I try to run the code, it finds 0 of 39 records even though I know there is matching data and then i get the message
I have done a similar task a while back which worked ok. I cant see any difference between the code i used then and the code im using now. Does anyone have any suggestions
I have a rather large spreadsheet
I am trying to create a macro to filter the named range in place using specified criteria. Those Criteria are saved further down in my spreadsheet in the format
Age Age
>=40 <=55
I am using the code
Code:
Range("Database").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("A20003:B20004"), Unique:=False
When I try to run the code, it finds 0 of 39 records even though I know there is matching data and then i get the message
Code:
Could Not be completed using range specified
I have done a similar task a while back which worked ok. I cant see any difference between the code i used then and the code im using now. Does anyone have any suggestions