AlexJReid/zigxll-standalone
Demonstrates usage of the ZigXLL package to add a simple custom function to Excel
refsA standalone Excel XLL add-in built with ZigXLL.
Once loaded (double click the built .xll - see below), you can use the custom functions in any Excel spreadsheet:
=dblit(42)
This will return 84 (doubles the input number).
If starting from scratch you will need to fetch to get the hash and add that to your build.zig.zon. This has already been done for this repo.
zig fetch https://github.com/alexjreid/zigxll/archive/refs/tags/v0.2.4.tar.gz
zig build
The XLL will be output to zig-out/lib/standalone.xll.
Add your Excel functions to src/functions.zig using the function in that file as a guide.
standalone.xll to load it into Excel