ExcelCSX is an Excel add-in that enables executing C# Scripts directly inside Microsoft Excel.
With ExcelCSX, you can automate and manipulate Excel workbooks using C# Script with the same convenience as VBA, while leveraging the power of the Roslyn scripting engine.
For an introduction to using C# Script with Excel, refer to:
As of 2019-04-22, this project is no longer under active development.
No further improvements or new feature requests will be accepted.
Binary distributions have been discontinued; however, the source code remains available.
Note:
The build process requires a code-signing certificate.
Please generate and use a self-signed certificate if needed.
You may freely use this project as:
- A reference implementation for embedding DSL runtimes into Excel
- A sample for using Roslyn Scripting within Office add-ins
ExcelCSX uses Roslyn for Scripting to evaluate and run C# Script within Excel.
The scripting syntax follows the conventions of Roslyn’s official scripting APIs:
https://github.com/dotnet/roslyn/wiki/Scripting-API-Samples
To make Excel manipulation easier, ExcelCSX provides several convenience features:
- Additional default reference assemblies
- Simplified access to the
Excel.Applicationobject
- Windows 7 or later
- .NET Framework 4.6 or later
- Microsoft Excel 2007 or later
This software is released under the MIT License as open-source, free software.