S
seeker
I want an activity to happen when ctrl and enter combination is chosen. The
following code:
Private Sub txtNameKey_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn And Shift = 2 Then
blah
blah
blah
end if
end sub
when I hit ctrl and then enter as a combo populates keycode with 17
(vbkeyctrl) instead of 13 (vbkeyreturn) and shift is 2 as it should be but
the procedure does not run because the sub thinks that vbkeyctrl was chosen
instead of vbkeyreturn and vbctrlmask. Thanks for the wisdom and help
following code:
Private Sub txtNameKey_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn And Shift = 2 Then
blah
blah
blah
end if
end sub
when I hit ctrl and then enter as a combo populates keycode with 17
(vbkeyctrl) instead of 13 (vbkeyreturn) and shift is 2 as it should be but
the procedure does not run because the sub thinks that vbkeyctrl was chosen
instead of vbkeyreturn and vbctrlmask. Thanks for the wisdom and help