Is it technically difficult?
Is it technically difficult?
I've never used it myself, but I have tried to use the Excel JS API, and it was quite a pain.
What? Am I the only one who hates VBA with a burning hatred of a thousand suns?
The object model and IDE are a big part of it though, maybe even more so than syntax horrors like while..wend vs do while..loop.
You are right that you can use something like C# to manipulate Excel files, but there isn't a ton of tutorials on it, which makes it difficult and prohibitive to learn.
I think Microsoft is making JS a first-class scripting language for Excel (and slowly deprecating VBA).
I think part of the problem is that any scripting language rolled directly into Excel will be expected to keep backwards compatibility. Microsoft doesn't have full control over Python/JS, and they would like to avoid issues such as the changeover from Python 2 to 3.
Microsoft could implement its own fork of those languages, but is that what customers actually want?
The difference is that add-ins is installed at the application level instead of the spreadsheet level (like VBA macros).
You can do it via .NET, but a lot of people prefer VBA for its "quick and dirty"-ness.
As a demonstration, I ran a ray tracing python script from Calc and it rendered to cells in the spreadsheet.
I think they still have several Python libraries out there, but yeah I wish Excel included Python support along with VBA.