try
Code:Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = vbKeyBack Or KeyCode = vbKeyDelete Then
This is a discussion on Capture Keystroke - any way? within the Excel Questions forums, part of the Question Forums category; I have a textbox and I need to know if the user deletes the text or uses the backspace key ...
I have a textbox and I need to know if the user deletes the text or uses the backspace key to remove the text. Does anyone know of the code to check for the delete key or backspace key being used?
try
Code:Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) If KeyCode = vbKeyBack Or KeyCode = vbKeyDelete Then
Bookmarks