有没有一种方法只使用C#和没有VBA捕获在Excel VSTO热键/快捷方式? [英] Is there a way to capture HotKeys/Shortcuts in Excel VSTO using only C# and no VBA?

查看:446
本文介绍了有没有一种方法只使用C#和没有VBA捕获在Excel VSTO热键/快捷方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以,我想捕捉我们Docuement级的Excel VSTO插件一些关键的命令。我似乎无法找到一个方法来做到这一点,你只需要使用VBA和有我们的插件谈话到VBA。任何帮助/例子是大大AP preciated。

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.

我使用Excel 2007中。

I am using Excel 2007.

推荐答案

您只能做到这一点,通过API调用子类Excel和监视键命令。 <一href="http://www.dotnetmonster.com/Uwe/Forum.aspx/vs-net-office/701/Capture-Keystrokes-CTRL-SOMETHING"相对=nofollow>这是年纪大了,但它仍然适用。

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

这篇关于有没有一种方法只使用C#和没有VBA捕获在Excel VSTO热键/快捷方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆