如何使用C#将菜单项添加到Excel? [英] How do I add a menu item to excel using C#

查看:164
本文介绍了如何使用C#将菜单项添加到Excel?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在visual studio 2017中使用c#开发了一个VSTO Excel加载项。它在选择File / Save菜单项时执行。我想创建一个新的菜单项作为执行它的事件。我该怎么做?



我尝试过:



谷歌搜索了c#create excel com add in。一般来说,命中都是胡言乱语。我确实找到了一个视频,描述了如何使用Visual Studio 2010进行操作,但我在Visual Studio 2017中找不到相同的模板。

I have developed a VSTO Excel add-in using c# in visual studio 2017. It is executed when the File/Save menu item is chosen. I want to create a new menu item as the event to execute it. How do I do that?

What I have tried:

Google searched "c# create excel com add in." Generally the hits were gibberish. I did find a video which describes how to do it with Visual Studio 2010 but I cannot find the same template in Visual Studio 2017.

推荐答案

我做了这个google搜索 - c#vsto excel加载项 [ ^ ]



我不知道是否有任何链接会有所帮助,但前20个链接中的大多数都是过去两年内的日期。
I did this google search - c# vsto excel add-in[^]

I don't know if any of the links will help, but most of the first 20 links were dates within the last two years.


这篇关于如何使用C#将菜单项添加到Excel?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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