- Joined
- Mar 21, 2011
- Messages
- 1,960
- Reaction score
- 0
- Points
- 36
- Excel Version(s)
- O365
Okay, the code then becomes
Code:
Private Sub ComboBox1_Change()
Dim cmbValue As String
With Worksheets("FolderSort")
cmbValue = Worksheets("FrontPage").OLEObjects("ComboBox1").Object.Value
.AutoFilterMode = False
If .Range("K4").Value <> "tmp" Then
.Columns("K").Insert
.Range("K4").Value = "tmp"
End If
.Range("K5:K368").Formula = "=AND(OR(AND(FrontPage!$E$17>=I5,FrontPage!$E$17<=J5),AND(FrontPage!$K$17>=I5,FrontPage!$K$17<=J5)),G5=""" & cmbValue & """)"
.Range("K4:K368").AutoFilter Field:=1, Criteria1:="=TRUE"
End With
End Sub
Last edited: