Unassign a shortcut key from a macro

P

Paul

I've been googling my eyes out on the topic. In Excel, one can open
the immediate window and type (for example):

application.onkey "%^z", ""

where the first argument is Alt-Ctrl-Z and the second argument is a
null string indicating that Alt-Ctrl-Z should invoke nothing.

application.onkey is an application method for Excel, and there is no
such method in the VBA documentation for Word (that I am able to find,
in Word 2003, Windows XP). Punching in the above code in the
immediate window causes an error.

How does one unassign a shortcut key from a macro in Word?
 
D

Doug Robbins - Word MVP

Check out the Application.KeyBindings Property.

--
Hope this helps,

Doug Robbins - Word MVP

Please reply only to the newsgroups unless you wish to obtain my services on
a paid professional basis.
 
P

Paul

Indeed it does help. Thank you.

Check out the Application.KeyBindings Property.

Hope this helps,

Please reply only to the newsgroups unless you wish to obtain my serviceson
 

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