I work on Excel and this is really cool and I’ll share it with the rest of the engineers.
https://learn.microsoft.com/en-us/office/client-developer/ex...
https://learn.microsoft.com/en-us/office/troubleshoot/excel/...
Sharp Cells' aim is to make it easy to use these APIs from F# so you don't have to worry about P/Invoke, manual memory management, dynamic .NET assembly loading, etc. to just write custom functions.
I quit that job because the extensibility story for Excel was so painful (but they had good business reasons for being in the space), sigh.