AW: OnKey nicht SendKeys
29.01.2017 19:19:31
Michael
Hi Mullit,
leider reagiert das Formular nicht auf die Tasten, also wenn du nicht noch direkt was weißt, dann lass ich das erst mal so weit. Aber hier mal mein Code, vielleicht hab ich das ja falsch gelesen.
Option Explicit
Private Sub CommandButton1_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) _
If KeyCode = vbKeyF4 Then Call cmd_Schließen_Click
End Sub
Private Sub cmd_Schließen_Click()
Unload Me
End Sub
Private Sub CommandButton2_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) _
If KeyCode = vbKeyF8 Then Call cmd_Einzel_Kopie_Click
End Sub
Private Sub cmd_Einzel_Kopie_Click()
'Application.SendKeys "%{F12}"
Call einzelkopie
Unload Me
End Sub
Private Sub CommandButton3_KeyUp(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer) _
If KeyCode = vbKeyF12 Then Call cmd_Kopien_Reihe_Click
End Sub
Private Sub cmd_Kopien_Reihe_Click()
'Application.SendKeys "%{F8}"
Call kopieren(anzahlKop)
Unload Me
End Sub