sanantonio
Board Regular
- Joined
- Oct 26, 2021
- Messages
- 124
- Office Version
- 365
- Platform
- Windows
Hi,
Have tried searching this and there's a few solutions on here that I'm trying to get to work but I don't seem to be able to.
My code is:
It is the
that doesn't work. Previously the formula looked like this
And this worked fine, I just need the tool to be able to recognize a cell reference instead of US05 so I can have users enter their site designation "US01, US02, etc." and the macro always filter to their specific site.
Could one of you fine folks see where I'm going wrong?
Have tried searching this and there's a few solutions on here that I'm trying to get to work but I don't seem to be able to.
My code is:
VBA Code:
ActiveSheet.ListObjects("Table26").Range.AutoFilter Field:=13, Criteria1:= _
"=Range("AC1").Value", Operator:=xlOr, Criteria2:=" = ""
It is the
VBA Code:
"=Range("AC1").Value"
that doesn't work. Previously the formula looked like this
VBA Code:
ActiveSheet.ListObjects("Table26").Range.AutoFilter Field:=13, Criteria1:= _
"=US05", Operator:=xlOr, Criteria2:="="
And this worked fine, I just need the tool to be able to recognize a cell reference instead of US05 so I can have users enter their site designation "US01, US02, etc." and the macro always filter to their specific site.
Could one of you fine folks see where I'm going wrong?