Search code examples
excel.net-3.5vstoexcel-2007hotkeys

Is there a way to capture HotKeys/Shortcuts in Excel VSTO using only C# and no VBA?


So I want to capture some key-commands in our Docuement-level Excel VSTO addin. I can't seem to find a way to do it, other than to use VBA and have our addin talk to the VBA. Any help/examples would be greatly appreciated.

I am using Excel 2007.


Solution

  • You can only do this through API calls to subclass Excel and watch for key commands. This is older, but it still applies.