Using keypress, the parameter nKeyCode holds the keycode and the parameter nShiftAltCtrl holds a value indicating if <Shift>, <Alt> or <Ctrl> was held down:
<Shift> = 1, 0001 (bin)
<Alt> = 2, 0010 (bin)
<Ctrl> = 4, 0100 (bin)
(see also the MSDN lib.)
Pressing <Shift>+<Ctrl>+<a> would result in:
nKeyCode : 97
nShiftAltCtrl: 5 (1 + 4)
There is a catch: the keypress event doesn't fire for <Alt>-combinations..... )o:
The only solution I've come up with sofar for trapping <Alt>-combinations is using the Microsoft Forms 2.0 textbox ActiveX, as this control traps all keypresses, but this solution doesn't work in combination with the forms' keypress-event.
Diederik Vermeeren
verm1864@exact.nl