Does anyone know a way of recognizing whether the shift key or control key
are pressed from inside VBA. I want a userform button to behave differently
if one of these keys are pressed.

RE: Recognizing Ctl or shift key in VBA by BobT

BobT
Tue Oct 07 17:25:00 CDT 2008

Look up in help "KeyDown" and Keycode Constants. It's tricky to explain
here, but the help should be "helpful".

"Rhythm" wrote:

> Does anyone know a way of recognizing whether the shift key or control key
> are pressed from inside VBA. I want a userform button to behave differently
> if one of these keys are pressed.

RE: Recognizing Ctl or shift key in VBA by James_Thomlinson

James_Thomlinson
Tue Oct 07 17:33:01 CDT 2008

http://www.cpearson.com/excel/KeyTest.aspx
--
HTH...

Jim Thomlinson


"Rhythm" wrote:

> Does anyone know a way of recognizing whether the shift key or control key
> are pressed from inside VBA. I want a userform button to behave differently
> if one of these keys are pressed.