change line 4 of your code to this:
Dim lngFilter As Integer
If the above does not work, change line 4 to this:
Dim lngFilter As Variant
Dim lngFilter As Integer
If the above does not work, change line 4 to this:
Dim lngFilter As Variant
Comment