johnbird1988
Board Regular
- Joined
- Oct 6, 2009
- Messages
- 199
Hello,
I have the code below that does work except for one variable (crit) I have changed.
I wanted to filter my range using Season not equal to Combo Box Season on a UserForm. The original one workfile but was static and looked like this
Any idea on how I can get this to work with a combo box would be very help full.
Thank you
John
I have the code below that does work except for one variable (crit) I have changed.
Code:
With Data
Set crit = .Resize(2, 1).Offset(, lc.Column + 1)
crit = [{"Season";"<>"}] & Me.cbo_Season.Value
Set ws = Sheets.Add
.AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=crit, CopyToRange:=ws.Range("A1")
.Clear
ws.Columns("A:AS").Copy .Range("A1")
Application.DisplayAlerts = False
ws.Delete
Application.DisplayAlerts = True
End With
I wanted to filter my range using Season not equal to Combo Box Season on a UserForm. The original one workfile but was static and looked like this
Code:
crit = [{"Season";"<>2016/2017"}]
Any idea on how I can get this to work with a combo box would be very help full.
Thank you
John