J
Julian
Hi,
I have a quite large Word XP/2002 VBA project and it suffers badly from
bloat very quickly, so I rebuilt Normal.dot from a blank document (manually
using the organizer because of the limitations on copying from Normal.dot in
code) to make it smaller again.
However, my keybinding assignment code, which worked perfectly well before
the rebuild [i.e. I have the right context, the keybuild codes are fine, and
the new key assignments actually work] gives me "word cannot change the
function of the specified key" on every assignment
I can do it manually; I have recorded the manual reassignment and replayed
that - and I get the same error; I can clear the assignment perfectly well...
but I can't make the assignment in code anymore.
I've checked everything I can think of (References are the same and in the
same order, project compiles) - what have I missed?
Thoughts? Help *much*appreciated
Julian
PS The inoffensive but offending code looks like this...
CustomizationContext = NormalTemplate
keyBindings.add KeyCode:=BuildKeyCode(wdKeyA, wdKeyAlt),
KeyCategory:=wdKeyCategoryMacro,
Command:="Normal.Comment_Handling.markAlternate"
PPS Running in Vista HP... but it has been OK for ages
I have a quite large Word XP/2002 VBA project and it suffers badly from
bloat very quickly, so I rebuilt Normal.dot from a blank document (manually
using the organizer because of the limitations on copying from Normal.dot in
code) to make it smaller again.
However, my keybinding assignment code, which worked perfectly well before
the rebuild [i.e. I have the right context, the keybuild codes are fine, and
the new key assignments actually work] gives me "word cannot change the
function of the specified key" on every assignment
I can do it manually; I have recorded the manual reassignment and replayed
that - and I get the same error; I can clear the assignment perfectly well...
but I can't make the assignment in code anymore.
I've checked everything I can think of (References are the same and in the
same order, project compiles) - what have I missed?
Thoughts? Help *much*appreciated
Julian
PS The inoffensive but offending code looks like this...
CustomizationContext = NormalTemplate
keyBindings.add KeyCode:=BuildKeyCode(wdKeyA, wdKeyAlt),
KeyCategory:=wdKeyCategoryMacro,
Command:="Normal.Comment_Handling.markAlternate"
PPS Running in Vista HP... but it has been OK for ages