

Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 27 Then Me.Hide
End Sub



Booozer писал(а):
- Код: Выделить всё
Private Sub UserForm_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 27 Then Me.Hide
End Sub


Private Sub CommandButton1_Click()
Unload Me
Set UserForm1 = Nothing
End Sub 
Private Sub CommandButton1_KeyPress(ByVal KeyAscii As MSForms.ReturnInteger)
If KeyAscii = 27 Then ActiveControl.Parent.Hide
End Sub



Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3