Creating add-in for Excel using C#

前端 未结 4 674
情深已故
情深已故 2020-12-08 07:48

I want to use C# class methods in Excel. Can anybody guid me how to do it ? The C# component will be excel add-in. How to create setup for this addin, so that I just need to

4条回答
  •  攒了一身酷
    2020-12-08 08:20

    You will need to create a new Visual Studio project of type Excel 2007 Add-In (or Excel 2003 Add-In). The option for this can be found (in Visual Studio 2008) at:

    New Project dialog -> Project types -> Visual C# -> Office

    This Add-In will need to be installed on the target machine(s).

    The Add-In will be able to hook into the Excel object model and therefore access any loaded spreadsheets etc.

    The Add-In will also be able to add buttons to the Excel toolbar/ribbon.

提交回复
热议问题