1

我需要创建一个自定义 Excel 2010 功能区(文档级别)。
我没有 Visual Studio,但有 Visual C# 2010 express
如果可以,请给我一些指导。

4

2 回答 2

3

You can customize the ribbon in Excel or any Office application without using Visual Studio, instead using a combination of XML and VBA.

A good starting-point for customizing the ribbon: http://msdn.microsoft.com/en-us/library/office/aa338202%28v=office.12%29.aspx (The title says Office 2007 but it will work for Office 2010 as well)

There is a free application that helps you design and validate the XML to modify the ribbon called the "Custom UI Editor For Microsoft Office": http://openxmldeveloper.org/blog/b/openxmldeveloper/archive/2006/05/25/customuieditor.aspx

于 2012-09-05T10:49:37.860 回答
1

实际上你有 Visual Studio,但是 Express Edition,此时它不应该有任何区别;)

我不明白您对“Excel 2010 功能区”的看法。我认为这是由 Excel 2010 处理的,它是 Office 2010 用户界面的一部分,因此如果您在 2010 版本中打开任何 Excel 文件,您将获得功能区。您可以自定义 Office 2010 功能区,并且可以通过多种不同方式创建 Excel 文件,例如使用 OpenXMLMicrosoft Office Interop。每个都有优点和缺点。

于 2012-09-03T18:20:52.223 回答