Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating add-in for Excel using C#

Tags:

c#

excel

add-in

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 give setup to user which will install add-in at client's machine. User should not need to do any other steps like registering the C# dll.

like image 813
Sambhaji Avatar asked Jan 07 '10 12:01

Sambhaji


People also ask

How do I create an Excel addin?

Create the add-in projectUsing the search box, enter add-in. Choose Excel Web Add-in, then select Next. Name your project ExcelWebAddIn1 and select Create. In the Create Office Add-in dialog window, choose Add new functionalities to Excel, and then choose Finish to create the project.

How do you create Excel add-in using C#?

To create a new Excel VSTO Add-in project in Visual StudioIn the templates pane, expand Visual C# or Visual Basic, and then expand Office/SharePoint. Under the expanded Office/SharePoint node, select the Office Add-ins node. In the list of project templates, select Excel 2010 Add-in or Excel 2013 Add-in.

Can you use C# in Excel?

You can use C# to create Excel commands and functions with my ESharper add-in. The code can be edited and executed directly in a live Excel session.


1 Answers

(Disclaimer: I develop the Excel-Dna library.)

You should have a look at Excel-Dna - http://excel-dna.net. The library allows managed assemblies written in C#, VB.NET or F# to expose high-performance user-defined functions (UDFs) and macros to Excel through the native .xll interface. The project is open-source and freely allows commercial use.

With Excel-Dna you can create a single .xll add-in file that the user can open as an add-in without any further installation or registration. Excel-Dna add-ins can expose RTD servers and customized Ribbons for Excel 2007 and Excel 2010 without additional registration, so you need no extra setup program.

like image 198
Govert Avatar answered Oct 02 '22 13:10

Govert