Results 1 to 5 of 5

Application.OnKey key codes

Threaded View

  1. #1
    Valued Forum Contributor ffffloyd's Avatar
    Join Date
    05-20-2008
    Location
    Perth, WA, Australia
    MS-Off Ver
    Office 365
    Posts
    249

    Application.OnKey key codes

    The Excel Help file lists a number of codes that can be used to describe keys for use with Application.OnKey, but what are the codes for naming the numeric keypad keys?

    I have tried the digits alone but they describe the numbers above the QWERTY row and specifically work only with them; not the numeric keypad. I want to do the opposite.

    I have tried enclosing the digits in braces, eg "^{2}" for ctrl-2 but that doesn't do the trick either.

    There must surely be codes for them but the Help appears to omit them.

    What I really want to do is attach them to macros, because Excel itself only lets you stipulate letters. You can customise Word with pretty well anything on the keyboard. I think we should be able to do the same with Excel.
    Last edited by ffffloyd; 08-15-2011 at 09:29 AM.

Thread Information

Users Browsing this Thread

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

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