View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Bobt Bobt is offline
external usenet poster
 
Posts: 84
Default Recognizing Ctl or shift key in VBA

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.