Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 11-24-2015, 04:36 PM
Guessed's Avatar
Guessed Guessed is offline Show Key Combination Pressed by User Windows 7 32bit Show Key Combination Pressed by User Office 2010 32bit
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The KeyDown event looks like it makes a lot more sense than the KeyUp event.

I had a little play with Paul's code to add CaseElse's that would reveal the integer values of other keys which may be pressed. I note that combinations can give different results depending on the order of the key presses (eg Ctrl then Alt returns a different result to Alt then Ctrl).
The first Case Else should be amended as follows to reveal the integer value of the modifiers
Case Else: strMask = Shift & "+"

You can then add a CaseElse to the second select
Case Else: StrKey = KeyCode
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote
 

Tags
key bindings



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show Key Combination Pressed by User Autofill form in word in combination with VBA nouki Word VBA 9 10-14-2015 01:20 PM
Show Key Combination Pressed by User Preventing text from moving down in a form when enter is pressed tgeary00 Word 2 10-29-2013 06:51 PM
Show Key Combination Pressed by User tcp-t F3 key combination used in template revans611 Word 1 11-29-2010 11:57 AM
Help with Combination function sanasath Excel 0 12-13-2005 07:24 AM
Outlook problem - Open Other User’s Folder doesn’t show Sent imported_bankboysb Outlook 0 12-12-2005 11:41 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:56 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft