Oh shit.
Excel adds JavaScript support.
https://www.reddit.com/r/programming/comments/8hubri/excel_adds_javascript_support/
As if macro viruses weren't enough now we can worry about spreadsheets having crypto-mining malware.
This is not the future I signed up for.
I read that Reddit post until it degenerated into a 'WeHateVBA' thread... Which wasn't very far in.
Microsoft will be running the JS through their own 'Chakra' engine and they will make *some* attempt at sandboxing and lockdown.
Plus the 'no macros and scripts' option they've had - and needed to do better - for decades with VBA and the *native* vbscript support in Excel since 2003.
So there's nothing new here, except the sheer volume of JS malware out there.
So the short version is: this isn't new.
VBA and VB and VBScript exist because Microsoft wanted everyone to be able to code, and Excel exists as an easy UI for them to import functionality from anything, anywhere, any way they want.
Making it even easier to do that with JS isn't new.
It all boils down to the quality of the Chakra JS engine's sandbox, and Microsoft's willingness to police the scripts that they allow to run.
...Which is to say: I share your pessimism.