O
olley
Hi,
I have problem with KeyBindings in Word 2007. I bind diferrent funcitons to
Alt+8 and Alt+* (on numeric pad). It works just fine in Word 2003. However in
Word 2007 it always calls Alt+8 bound function. Seems that Word 2007 cannot
differentiate between wdKey8 and wdKeyNumericMultiply, even though
BuildKeyCode() returns different values for those combinations.
Does anyone know if this is a bug or a feature in new Word 2007? Is there a
workaround for this?
Thanks!
Here is the code sample. In Word 2007 it always call "EghtPressed"
KeyBindings.Add KeyCode:=BuildKeyCode(
arg1:=wdKeyAlt,
Arg2:=wdKey8),
KeyCategory:=wdKeyCategoryCommand,
Command:="EightPressed"
KeyBindings.Add KeyCode:=BuildKeyCode(
arg1:=wdKeyAlt,
Arg2:=wdKeyNumericMultiply),
KeyCategory:=wdKeyCategoryCommand,
Command:="StarPressed"
I have problem with KeyBindings in Word 2007. I bind diferrent funcitons to
Alt+8 and Alt+* (on numeric pad). It works just fine in Word 2003. However in
Word 2007 it always calls Alt+8 bound function. Seems that Word 2007 cannot
differentiate between wdKey8 and wdKeyNumericMultiply, even though
BuildKeyCode() returns different values for those combinations.
Does anyone know if this is a bug or a feature in new Word 2007? Is there a
workaround for this?
Thanks!
Here is the code sample. In Word 2007 it always call "EghtPressed"
KeyBindings.Add KeyCode:=BuildKeyCode(
arg1:=wdKeyAlt,
Arg2:=wdKey8),
KeyCategory:=wdKeyCategoryCommand,
Command:="EightPressed"
KeyBindings.Add KeyCode:=BuildKeyCode(
arg1:=wdKeyAlt,
Arg2:=wdKeyNumericMultiply),
KeyCategory:=wdKeyCategoryCommand,
Command:="StarPressed"