JaapZ
New Member
- Joined
- Apr 21, 2016
- Messages
- 6
- Office Version
- 365
- Platform
- Windows
Good afternoon, finding myself in a "smash head on keyboard to continue"-situation.
I'm filtering a dataset on various columns. In one it has to exclude all rows where the cell value in the column reads "Don't use". The cell contents are entered via a formula which looks in another cell.
The formula in the column I'm evaluating (column 23) is"
The filter I'm applying in my macro is the following:
And that throws me an error.
Stupid thing is that when I change that line so that only the "Dont's" are to be selected, it works correctly.
I've gone through many messages on many forums: no succes.
Anyone who can explain me what I'm doing wrong and what I need to change to make it work?
Regards,
Jaap
I'm filtering a dataset on various columns. In one it has to exclude all rows where the cell value in the column reads "Don't use". The cell contents are entered via a formula which looks in another cell.
The formula in the column I'm evaluating (column 23) is"
Code:
[I][SIZE=2][FONT=Verdana]=IF('Latest Download'!$Txx=2,'Latest Download'!ALxx,"Don't use")[/FONT][/SIZE][/I]
The filter I'm applying in my macro is the following:
Rich (BB code):
ActiveSheet.Range("$A$1:$BB$12001").AutoFilter Field:=23, _
Criteria1:=Array(<>"*Don't*"), Operator:=xlFilterValues
<strike></strike>
And that throws me an error.
Stupid thing is that when I change that line so that only the "Dont's" are to be selected, it works correctly.
Code:
[I][FONT=Verdana] ActiveSheet.Range("$A$1:$BB$12001").AutoFilter Field:=23, _
Criteria1:=Array("*Don't*"), Operator:=xlFilterValues[/FONT][/I]
I've gone through many messages on many forums: no succes.
Anyone who can explain me what I'm doing wrong and what I need to change to make it work?
Regards,
Jaap