+ Reply to Thread
Results 1 to 3 of 3

observe keyboard events in Excel 2010

  1. #1
    Registered User
    Join Date
    05-01-2014
    Location
    German
    MS-Off Ver
    Excel 2010
    Posts
    2

    observe keyboard events in Excel 2010

    Hi,

    how can I observe the keyboard events in excel 2010 for all excel sheets?

    I want show a userform if pressed the key 'caps lock' is active and the key 'numlock' is active.
    Is the function not active then I will hide the userform.

    unfortunatly I don't now found a keyboard event in excel vba.

    thanks.

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: observe keyboard events in Excel 2010

    Hello forumarbeit,

    Welcome to the Forum!

    Copy the macro code below into a VBA Module. You can then call the functions IsCapsLockOn and IsNumLockOn in your code to test the keys.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    05-01-2014
    Location
    German
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: observe keyboard events in Excel 2010

    Leith thanks for your help,

    but how can I recognize in all table sheets that a key was pressed?

    this is my problem. Only then I can analyze the pressed keys from the keyboard.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Required all keyboard shortcut keys relating to Excel-2007/2010
    By PRADEEPB270 in forum Excel General
    Replies: 2
    Last Post: 10-14-2013, 08:27 PM
  2. Excel 2010; Form Controls: Assign keyboard shortcut to list box
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 10:59 PM
  3. Reset Keyboard shortcuts in Excel 2010
    By junoon in forum Excel General
    Replies: 4
    Last Post: 01-17-2013, 05:18 AM
  4. Replies: 2
    Last Post: 10-13-2011, 06:39 AM
  5. Replies: 1
    Last Post: 02-08-2007, 10:57 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1