Hi
This part of my code applies a greater than or equal to filter successfully;
But I want it to be equal to, but when I change it, it doesn't filter. I've tried 2 variations;
And;
The contents of G3 and field 7 are in currency format. If I change to text, the equals filter works but I need to keep as currency + I can't work out why it only works for >=
Thanks in advance for your help
This part of my code applies a greater than or equal to filter successfully;
Code:
If ActiveSheet.Range("G3").Value <> "" Then
.AutoFilter Field:=7, Criteria1:=">=" & ActiveSheet.Range("G3").Value
End If
But I want it to be equal to, but when I change it, it doesn't filter. I've tried 2 variations;
Code:
If ActiveSheet.Range("G3").Value <> "" Then
.AutoFilter Field:=7, Criteria1:="=" & ActiveSheet.Range("G3").Value
End If
And;
Code:
If ActiveSheet.Range("G3").Value <> "" Then
.AutoFilter Field:=7, Criteria1:=ActiveSheet.Range("G3").Value
End If
The contents of G3 and field 7 are in currency format. If I change to text, the equals filter works but I need to keep as currency + I can't work out why it only works for >=
Thanks in advance for your help