Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
Dim X As Integer
If KeyCode = 27 Then
Unload Me
End If
MsgBox KeyCode
If KeyCode = 65 And Shift = 2 Then
X = Me.Height + 10
Me.Height = X
End If
If KeyCode = 88 And Shift = 2 Then
X = Me.Height - 10
Me.Height = X
End If
MsgBox Me.Height
End Sub
Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 And Shift = 3 Then
Unload Me
End If
End Sub
Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 27 Then
Unload Me
ElseIf KeyCode = 90 And Shift = 2 Then
Me.Height = Me.Height + 10
ElseIf KeyCode = 88 And Shift = 2 Then
Me.Height = Me.Height - 10
End If
End Sub
Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 And Shift = 3 Then
Unload Me
End If
End Sub
Private Sub UserForm_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
If KeyCode = 27 Then
Unload Me
End If
If KeyCode = 90 And Shift = 2 Then
Me.Height = Me.Height + 10
End If
If KeyCode = 88 And Shift = 2 Then
Me.Height = Me.Height - 10
End If
If KeyCode = 16 And Shift = 2 Then
Me.Height = Me.Height - 10
End If
End Sub
Private Sub UserForm_MouseDown(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)
If Button = 1 And Shift = 3 Then
Unload Me
End If
End Sub