Recognizing Ctl or shift key in VBA

  • Thread starter Thread starter Rhythm
  • Start date Start date
R

Rhythm

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.
 
Look up in help "KeyDown" and Keycode Constants. It's tricky to explain
here, but the help should be "helpful".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top