اینطوری عزیزم :
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
'VBShiftMask : The bit mask for the SHIFT key.
'VBCtrlMask : The bit mask for the CTRL key.
'VBAltMask : The bit mask for the ALT key.
ShiftKey = Shift And 7
Select Case ShiftKey
Case 1 ' or vbShiftMask
Debug.Print "You pressed the SHIFT key."
Case 2 ' or vbCtrlMask
Debug.Print "You pressed the CTRL key."
Case 4 ' or vbAltMask
Debug.Print "You pressed the ALT key."
End Select
If Shift And vbAltMask Then ' ALT key was pressed
Select Case KeyCode
Case vbKeyA ' ALT+A was pressed
Debug.Print "ALT+A was pressed"
Case vbKeyB ' ALT+B was pressed
Debug.Print "ALT+B was pressed"
Case vbKeyC ' ALT+C was pressed
Debug.Print "ALT+C was pressed"
End Select
End If
End Sub
Private Sub Form_Load()
Me.KeyPreview = True
End Sub