when i press backspace, the code fires up
but how come when i press DELETE nothing happens?
Code:Private Sub lstRange_KeyPress(KeyAscii As Integer) If KeyAscii = vbKeyBack Or KeyAscii = vbKeyDelete Then MsgBox "hi" lstRange.RemoveItem lstRange.ListIndex End If End Sub




Reply With Quote