N
NanoWizard
Made a mistake in the C# code:
C# Code:
***************************************************************************
object objArg2 = Word.WdKey.wdKeyEquals;
object objMissing = Missing.Value;
// Build the key combination here:
int iKeyCode= WordApplication.BuildKeyCode( Word.WdKey.wdKeyAlt, ref
objArg2, ref objMissing, ref objMissing );
Word.WdKeyCategory wdCat = Word.WdKeyCategory.wdKeyCategoryMacro;
// register the keybinding here:
WordApplication.KeyBindings.Add( wdCat, "SetupShortcut", iKeyCode, ref
objMissing, ref objMissing );
C# Code:
***************************************************************************
object objArg2 = Word.WdKey.wdKeyEquals;
object objMissing = Missing.Value;
// Build the key combination here:
int iKeyCode= WordApplication.BuildKeyCode( Word.WdKey.wdKeyAlt, ref
objArg2, ref objMissing, ref objMissing );
Word.WdKeyCategory wdCat = Word.WdKeyCategory.wdKeyCategoryMacro;
// register the keybinding here:
WordApplication.KeyBindings.Add( wdCat, "SetupShortcut", iKeyCode, ref
objMissing, ref objMissing );