Hey John
I'm working on a template document in which some features has to disabled.
This document has to be distributed and i don't won't people to use
functions like bold, italic, underline ,...
I already disabled some buttons and menu items...
Now i'm looking for a way to disable some shortcut-keys
A simpler and maybe more powerful (?) approach would
be to override the corresponding commands. Word allows
you to override any feature accessible through a menu item
or a command bar control. The only tricky thing is to find
out the exact internal command name (especially if you're
not English speaking). You might be able to find a list of
Word's command names with Google, though... Oh, just
remembered another possibility: if you've got the English
version of Word, you can look up the commands in the
Macro-dialog (Tools | Macro | Macros). In the 'Macro In'-
dropdown, choose 'Word commands'...
Example:
Write your own Bold()-function to override the internal Bold-
command. This lets your function run whenever someone
tries to apply bold formatting using the B-Button on the format
command bar or the shortcut CTRL + SHIFT + B.
Note, however, that people still will be able to apply bold
formatting through the format-dialog. But you can override
the call to that one as well writing your own FormatBold()-function.
Code:
Sub Bold()
MsgBox "Gotcha, Bold formatting not allowed

"
End Sub
Sub FormatFont()
MsgBox "Ok, smart ass, get it: bold formatting is not allowed!"
End Sub
Cheers,
Martin