Public interruption As Boolean
Public Sub TextBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 3 Then interruption = True: une_sub
End Sub
Sub une_sub()
If interruption Then
x = MsgBox("interruption", vbYesNo)
If x = vbYes Then Unload Me
End If
End Sub