locked
KeyBinding & arrow keys RRS feed

  • Question

  • Word 2010 VBA

    Trying to remap the cursor pad's Up & Down arrow keys to my VBA macro, but I don't see a wdKey* constant for them. Any way to do this?


    In the WordBasic era, macros named "LineUp" & "LineDown" would do it, but that doesn't seem to work any more.
    Saturday, May 7, 2011 2:57 AM

Answers

  • You can use vbKeyUp and vbKeyDown
    Regards, Hans Vogelaar
    • Marked as answer by JRV529088 Saturday, May 7, 2011 2:38 PM
    Saturday, May 7, 2011 9:37 AM

All replies

  • You can use vbKeyUp and vbKeyDown
    Regards, Hans Vogelaar
    • Marked as answer by JRV529088 Saturday, May 7, 2011 2:38 PM
    Saturday, May 7, 2011 9:37 AM
  • Wow...how did i miss THAT? Embarassing.

    Thanks, Hans!

    Saturday, May 7, 2011 2:38 PM
  • Strangely enough, the wdKey constants double most of the vbKey constants, but not vbKeyUp and vbKeyDown. No idea why...


    Regards, Hans Vogelaar
    Sunday, May 8, 2011 1:17 AM
  • Because it helps separate the MVPs from the wannabes.<g>

    Sunday, May 8, 2011 1:22 AM