Ich habe wieder einmal ein Problem, das sieht wie folgt aus:
Ich möchte eine Prozedur ausführen sobald in einem Textfeld die Taste ENTER gedrückt wird.
Kann mir jemand sagen wie ich das hinkriege?
Ich danke euch schon im Voraus.
Gruss Christoph
Private Sub TextBox1_Exit(ByVal Cancel As MSForms.ReturnBoolean)
If blnEnter = False Then
Cancel = True
Else
blnEnter = False
End If
End Sub
Private Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = vbKeyReturn Then
MsgBox TextBox1.Value
blnEnter = True
End If
End Sub