Private Sub comboassigned_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 46 Then
KeyCode = 0
MsgBox "You cannot delete this value.", vbOKOnly, "Invalid Keystroke"
Else
Select Case KeyCode
Case vbKeyTab, vbKeyReturn, vbKeyDown, vbKeyUp, vbKeyDelete
'Do nothing
Case Else
KeyCode = 0
MsgBox "You must select a value from the dropdown.", vbOKOnly, "Invalid Input"
End Select
End If
End Sub