windowsforms-16477-controls-and-libraries-spreadsheet-examples-formulas-how-to-use-excel-add-ins-in-the-spreadsheet-control.md
This example demonstrates how to use Excel add-ins in the SpreadsheetControl. An Excel add-in represents a file containing code that provides additional functionality to Microsoft® Excel® (e.g., custom functions). Add-ins have a variety of practical applications in the business world. For example, the Bloomberg Excel add-in allows end-users to retrieve Bloomberg market, historical and reference data for further analysis in an Excel spreadsheet. The SpreadsheetControl’s custom functions provide the capability to use a variety of Excel add-ins in your spreadsheet application.
In particular, this code sample runs Microsoft® Excel® in the background to evaluate a custom function called SPHEREMASS in the add-in macro code and display the result in a spreadsheet application. The custom function contained in the add-in file calculates the mass of a sphere made of a material with a specified density. If the density is not provided, the density of water is used.
Note
You must have Microsoft® Excel® installed on your computer to run the application.
To use Excel add-ins in your spreadsheet application, do the following.
View Example: How to use Excel Add-Ins in the Spreadsheet Control