+ Reply to Thread
Results 1 to 7 of 7

Custom keyboard shortcuts?

  1. #1
    Registered User
    Join Date
    11-24-2007
    Posts
    2

    Custom keyboard shortcuts?

    How can I define a custom keyboard shortcut using non-letter letter keys. For example, I'd like to create a negative indent keyboard shortcut assigning the strokes as CTRL + SHIFT + <

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    I don't think so
    here's a code
    Please Login or Register  to view this content.
    once the code is in place go to tools >macros >options and set the key stroke, needs to be a letter though
    Last edited by davesexcel; 11-25-2007 at 12:26 AM.

  3. #3
    Registered User
    Join Date
    11-24-2007
    Posts
    2
    Thanks Dave,

    I'm fairly certain that there's a way to assign non-letter keyboard shortcuts. A financial modeling package called DealMaven (www.dealmaven.com) assigns non-letter keyboard shortcuts to various excel functions, but I don't want to pay them if the process is simple enough to do manually. I'm not sure if they use macros to assign those shortcuts. Knowing how to do this would be extremely useful for everyone since using shortcuts to perform mundane but often-used menu-item actions will reduce analysis time significantly.

  4. #4
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    Quote Originally Posted by ch1no
    Thanks Dave,

    I'm fairly certain that there's a way to assign non-letter keyboard shortcuts. A financial modeling package called DealMaven (www.dealmaven.com) assigns non-letter keyboard shortcuts to various excel functions, but I don't want to pay them if the process is simple enough to do manually. I'm not sure if they use macros to assign those shortcuts. Knowing how to do this would be extremely useful for everyone since using shortcuts to perform mundane but often-used menu-item actions will reduce analysis time significantly.
    Hi,
    When you find a way please let us know.....

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    The OnKey event can be triggered my many combinations. The VBE help system entry would help you.

  6. #6
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,480
    Quote Originally Posted by mikerickson
    The OnKey event can be triggered my many combinations. The VBE help system entry would help you.
    But will you be able to use ctrl- none letter to activate it?

  7. #7
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    OH,, Ctrl NONE!!! No! that's so odd that I failed to read it.

    If it were possible, it would be a risky choice. If CTRL+ was a hot key, how would one press CTRL+C ?


    Quote Originally Posted by Excel Help
    Remarks
    The Key argument can specify any single key; any key combined with ALT, CTRL, or SHIFT, or any combination of these keys (in Windows); or COMMAND, CTRL, OPTION, or SHIFT, or any combination of these keys (on the Macintosh). Each key is represented by one or more characters, such as "a" for the character a, or "{ENTER}" for the ENTER key.
    To specify characters that aren't displayed when you press the corresponding key (ENTER or TAB, for example), use the codes listed in the following table. Each code in the table represents one key on the keyboard.
    Key Code
    BACKSPACE {BACKSPACE} or {BS}
    BREAK {BREAK}
    CAPS LOCK {CAPSLOCK}
    CLEAR {CLEAR}
    DELETE or DEL {DELETE} or {DEL}
    DOWN ARROW {DOWN}
    END {END}
    ENTER (numeric keypad) {ENTER}
    ENTER ~ (tilde)
    ESC {ESCAPE} or {ESC}
    HELP {HELP}
    HOME {HOME}
    INS {INSERT}
    LEFT ARROW {LEFT}
    NUM LOCK {NUMLOCK}
    PAGE DOWN {PGDN}
    PAGE UP {PGUP}
    RETURN {RETURN}
    RIGHT ARROW {RIGHT}
    SCROLL LOCK {SCROLLLOCK}
    TAB {TAB}
    UP ARROW {UP}
    F1 through F15 {F1} through {F15}

    In Windows, you can also specify keys combined with SHIFT and/or CTRL and/or ALT. On the Macintosh, you can also specify keys combined with SHIFT and/or CTRL and/or OPTION and/or COMMAND. To specify a key combined with another key or keys, use the following table.
    To combine keys with Precede the key code by
    SHIFT + (plus sign)
    CTRL ^ (caret)
    ALT or OPTION % (percent sign)
    COMMAND * (asterisk)

    To assign a procedure to one of the special characters (+, ^, %, and so on), enclose the character in braces. For details, see the example.
    This is what Excel says.
    Last edited by mikerickson; 12-02-2007 at 08:42 PM.

+ Reply to Thread

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