Any suggestions on how i can filter the data loaded into combobox on userform to specific value/text as shown below. The userform does load but the data is not filtered. Any help would be appreciated
Thanks
With Me.cbxPlanning
.ColumnCount = 6
.ColumnWidths = "65;70;0;0;0;12" 'hide the second column
.Clear
Set Sourcewb = Workbooks.Open("Z:\Test\Log.xlsm", False, True)
With Sourcewb.Worksheets(1)
Set myRng = .Range("A2:CD" & .Cells(.Rows.count, "A").End(xlUp).Row)
With myRng
.AutoFilter
.AutoFilter field:=2, Criteria1:="Standard"
End With
Set aCell = Range("F2")
myRng.Sort Key1:=aCell, Order1:=xlAscending, Header:=xlYes
End With
.List = myRng.Value
Sourcewb.Close False
End With
Bookmarks