Здравстуйте, есть задание чтобы при нажатии комбинации клавиш Ctrl+Shift+ПКМ в правый нижний угол userform открывался msgbox. У меня получилось что msgbox открывается при нажатии в левый верхний угол.
Private Const fmshiftmask = 1
Private Const fmctrlmask = 2
Private Sub userform_mousedown(ByVal button As Integer, ByVal shift As Integer, ByVal x As Single, ByVal y As Single)
Dim test As Boolean
test = x < Width / 10 And y < Height / 10 And button = xlSecondaryButton And (shift = fmshiftmask + fmctrlmask)
If test Then
MsgBox "alt", _
vbInformation, "Пасхальное яйцо"
End If
End Sub
Подскажите пожайлуста. Заранее спасибо.
Private Const fmshiftmask = 1
Private Const fmctrlmask = 2
Private Sub userform_mousedown(ByVal button As Integer, ByVal shift As Integer, ByVal x As Single, ByVal y As Single)
Dim test As Boolean
test = x < Width / 10 And y < Height / 10 And button = xlSecondaryButton And (shift = fmshiftmask + fmctrlmask)
If test Then
MsgBox "alt", _
vbInformation, "Пасхальное яйцо"
End If
End Sub
Подскажите пожайлуста. Заранее спасибо.