You can write add-ins for Excel. I’ve used this .NET component library to build Winform apps that use the add-in interface to 13 years. Super simple and it uses the COM interface and supports all Windows Office versions.
https://www.add-in-express.com/add-in-net/index.php