CopperWire
Technical User
I'm trying to filter a list based on a value picked on a form. When I execute the following code, I get an empty value for my h2 field. Any suggestions as to why this may be. I was populating that h2 value using a lookup, however, I even tried to hardcode it and I still get and empty value. My code is below!
Sub Filter()
'
'
With Worksheets("data"
If .AutoFilterMode Then
With .AutoFilter.Filters(1)
If .On Then h2 = .Criteria1
End With
End If
End With
End Sub
Sub Filter()
'
'
With Worksheets("data"
If .AutoFilterMode Then
With .AutoFilter.Filters(1)
If .On Then h2 = .Criteria1
End With
End If
End With
End Sub