In order to avoid confussion. i Ve changed as per Word Requirements only the SELECT CASE part
Code:
Private Sub ComboBox1_Change()
Dim oneItem As Variant
Dim FilteredItems() As String
Dim NotFlag As Boolean
Dim Pointer As Long, i As Long
If DisableMyEvents Then Exit Sub
If AbortOne Then AbortOne = False: Exit Sub
If TypeName(FullList) Like "*()" Then
ReDim FilteredItems(1 To UBound(FullList))
DisableMyEvents = True
Pointer = 0
With Me.ComboBox1
Select Case FilterStyle
Case 2: .Tag = LCase(.Text) & "*"
Case 0: .Tag = "*" & LCase(.Text) & "*"
Case 1: .Tag = "*" & LCase(.Text) & "*": NotFlag = True
Case 3: .Tag = "*" & LCase(.Text)
Case "": .Tag = "*"
End Select
For Each oneItem In FullList
If (LCase(oneItem) Like .Tag) Xor NotFlag Then
Pointer = Pointer + 1
FilteredItems(Pointer) = oneItem
End If
Next oneItem
.List = FilteredItems
.DropDown
DisableMyEvents = False
If Pointer = 1 Then .ListIndex = 0
End With
End If
End Sub
Also Checked the following code Not At all Required
Code:
Private Sub ComboBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
IsArrow = KeyCode = vbKeyUp Or KeyCode = vbKeyDown
If KeyCode = vbKeyReturn Then ComboBox1.List = FullList
End Sub
And Where to Apply appropriate Msgbox as post #6
SMehta
Thread 3: No: 46521 : Post No12 : TM 25