Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Recognizing Ctl or shift key in VBA

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.
  #2   Report Post  
Posted to microsoft.public.excel.programming
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.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Recognizing Ctl or shift key in VBA

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.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Recognizing data george Excel Worksheet Functions 1 March 5th 08 10:28 AM
Recognizing *.xls files Nevsky Excel Discussion (Misc queries) 6 October 14th 07 03:05 AM
recognizing names vegetassj3 Excel Programming 3 March 17th 06 07:21 PM
Recognizing #N/A nebb Excel Worksheet Functions 1 October 19th 05 12:56 AM
Not recognizing a Const Dan T[_3_] Excel Programming 7 July 18th 04 12:45 AM


All times are GMT +1. The time now is 11:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"