本文介绍了如何在VS2013 AddIns中使用excel功能区?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 我正在使用VS2013 Excel AddIns  I am using the VS2013 Excel AddIns  Q)我们怎样才能在启动事件中获得Ribbon对象?Q) How can we got the Ribbon object on Startup event? Q)我们如何在Ribbion上放置一些按钮并绑定一些事件?Q) How can we put some button on Ribbion and bind some event? Q)我们如何在ribbion中禁用/启用标准按钮?Q) How can we Disable/Enable standard buttons in ribbion? 谢谢 Ankur R。 推荐答案   Hi Ankur,  >>我们怎样才能在启动事件中获得Ribbon对象?>>How can we got the Ribbon object on Startup event?  如果您使用 功能区(设计师)  ,我们可以使用Globals类访问功能区。If you are using Ribbon(Designer) , we could access the ribbon by using the Globals Class.请访问 的在运行时访问功能区 如果您使用的是 功能区(XML) ,请参阅类似问题的解决方法: 的有没有办法在运行时访问功能区(XML)? If you are using Ribbon(XML), please see the workaround from the similar issue:Is there a way to access a Ribbon (XML) at run time?  >>我们如何在Ribbion上放置一些按钮并绑定一些事件>>How can we put some button on Ribbion and bind some event  要自定义Office Fluent功能区,请访问:To custom Office Fluent Ribbon, please visit: 自定义 2007 Office Fluent功能区开发人员(第1部分,共3部分) 自定义 2007 Office Fluent功能区开发人员(第2部分,共3部分) 的自定义 2007 Office Fluent功能区开发人员(第3部分,共3部分)   >>我们如何在ribbion中禁用/启用标准按钮>>How can we Disable/Enable standard buttons in ribbion  自定义功能区时,我建议你 显示加载项用户界面错误  在设置中检查是否存在自定义错误。When customizing the ribbon, I suggest you Show Add-in User Interface Errors  in the settings to check if there are errors in customization.在尝试禁用/启用内置按钮时,我们将收到错误"内置组中的控件无法修改"。因此我们无法编辑内置按钮-in group。We will get an error "Controls in a built-in group cannot be modified" when trying to Disable/Enable a built-in button. So we could not edit built-in buttons in built-in group.  问候, Celeste 这篇关于如何在VS2013 AddIns中使用excel功能区?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
10-22 06:35