Which is the way to disable shortcut keys of buttons

F

frank

Hello:
In a document I need to disable some toolbars(I 've done this). Also I need
to disable their associated Shortcut Keys. I don't know the way to do it.
The toolbars are disabled, but I can execute code of some commandbuttons
through SortKeys (like Save, Open,Find, etc...).
Thanks in advance.
Frank.
 
C

Cindy M -WordMVP-

Hi Frank,
In a document I need to disable some toolbars(I 've done this). Also I need
to disable their associated Shortcut Keys. I don't know the way to do it.
The toolbars are disabled, but I can execute code of some commandbuttons
through SortKeys (like Save, Open,Find, etc...).
You'd need to loop through the KeyBindings collection, I'd think, disabling
or clearing the settings. Be sure, however, to set the customization context
so that you don't end up disabling Word completely, outside your document.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Sep 30 2003)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :)
 
F

frank

Hi:
When I access to KeyBindings collection , there's no keybinding to clear .
The property count of KeyBindings collection is 0.
Do you have an example of what you says?
Thanks in advance.
Frank.
 
C

Chad DeMeyer

What exactly are you trying to do? If you want to prevent users from
executing certain built-in commands by any method, the easiest way is to
replace or modify those commands with your own by creating macros with the
same name as the built-in command. See the following articles for
additional information:

http://msdn.microsoft.com/library/d...en-us/off2000/html/wohowmodifywordcommand.asp
http://msdn.microsoft.com/library/d...odeopg/html/deovrmodifyingbuiltincommands.asp

Regards,
Chad DeMeyer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top