View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Chip Pearson Chip Pearson is offline
external usenet poster
 
Posts: 7,247
Default Keybindings Collection in Excel

John,

You can use the OnKey method of the Application object to assign
a macro to a key combination . See OnKey help in VBA help for
more details.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"John" wrote in message
...
Hi,

Can anyone tell me how to assign short cut keys to macros

(other than the
manual method). I'm trying to program a set of programable

keys
(www.x-keys.com) to fire a macro.

I've discovered the "Keybindings" collection in Word, but it

doesn't appear
to exist in Excel. Is there an alternative?

Lastly are normally set macro short cut key combinations stored

in the
respective document or somewhere else?

Thanks in advance

John