Live data from Hacker News

Excel Adds JavaScript and Power BI Support

dev.office.com

31–40 of 108 posts

Re: Excel Adds JavaScript and Power BI Support

#31
VBA is well obsolete by now. I was really hoping they'd add C# or python to Excel. Yes you can use VSTO to write modules but that isn't the same - you can't send a spreadsheet with C# embedded like you can with VBA.

As a result I'm using Python and Jupyter notebooks now, not as friendly as Excel but at least its modern and there are lots of libraries out there to make the platform super powerful.

Re: Excel Adds JavaScript and Power BI Support

#32
post #3

> Office developers have been wanting to write JavaScript custom functions for many reasons, such as: > • Calculate math operations, like whether a number is prime. It saddens me that this is a thing we want Javascript for. So anyway, now we have XLL, COM, VBA, and Javascript. All of them different but overlapping ways to extend what Excel can do. Am I missing any?

Master Data Services

Re: Excel Adds JavaScript and Power BI Support

#33

VBA wasn’t bad enough, now millions of analysts will have to contend with spreadsheet spaghetti and JavaScript.

Having seen a VBA-powered spaghetti-monster of a spreadsheet in use, the title made me shudder in fear. I feel bad for whoever gets allocated one of these 'business-critical applications' to maintain.

Re: Excel Adds JavaScript and Power BI Support

#34

Microsoft has been doing great work in opening up their software the past couple years. For anyone interested in this, I suggest taking some time to read through Microsoft's Office Platform docs [0]. Quite a lot is possible. The plugin API is really clean and you can create javascript plugins for any office product, where you basically run a "website" in a frame within the office product, and the code in the "website…

So my question is how this integrates with their online version of Excel? For example: I build some custom JS based functions in Excel and used them all over my spreadsheet then I upload it to OneDrive and trying to open it in online Excel form, will it work? That is key for someone like me who creates sheet offline but then wants to consume the data via online version.

Re: Excel Adds JavaScript and Power BI Support

#35
post #31

VBA is well obsolete by now. I was really hoping they'd add C# or python to Excel. Yes you can use VSTO to write modules but that isn't the same - you can't send a spreadsheet with C# embedded like you can with VBA. As a result I'm using Python and Jupyter notebooks now, not as friendly as Excel but at least its modern and there are lots of libraries out there to make the platform super powerful.

I'd suggest ExcelDNA rather than VSTO. But that doesn't help with your main point (nothing to install or support, you can extend the spreadsheet without having to compile or install anything) which I completely agree with.

Re: Excel Adds JavaScript and Power BI Support

#36
post #22

Earlier quoted context omitted.

And if that works for the business... then where's the problem?

Well, on the one hand, it's not a problem. It's pure elitism to insist that laypeople learn Real Programming and make their spreadsheets the Right Way. Excel + JS is going to be an empowering tool. But on the other hand, it's going to be a nightmare to maintain when you layer it on top of VBA macros, and some poor soul is going to end up responsible for making it continue to limp along. Nobody will understand how it…

I thought this was part of the business model. Microsoft makes bank by rolling out an "empowering" tool (think Excel Macros, Access VBA, and LightSwitch) that allows the business folks to create their own solutions. Eventually they outgrow or simply can't maintain those solutions and hire developers, whom Microsoft made bank selling them "real" dev tools, to convert them into proper applications. Rinse and repeat.

Re: Excel Adds JavaScript and Power BI Support

#37

VBA wasn’t bad enough, now millions of analysts will have to contend with spreadsheet spaghetti and JavaScript.

I'm thinking of all the places where I've seen Excel used in operations. Often it's the only software the company uses. Now we're going to get people who've done a little javascript in college using it to elaborate the Spreadsheet That Runs Our Business. In all likelihood, the resulting chimera will make an impenetrable tangle of VBA and Javascript.

God forbid someone will figure out how to plug NPM into Excel-JS, and the bloat from the web will get ported into business spreadsheets as well.

(I guess that's one way to drive new hardware sales, though.)

Re: Excel Adds JavaScript and Power BI Support

#38

VBA wasn’t bad enough, now millions of analysts will have to contend with spreadsheet spaghetti and JavaScript.

I'm thinking of all the places where I've seen Excel used in operations. Often it's the only software the company uses. Now we're going to get people who've done a little javascript in college using it to elaborate the Spreadsheet That Runs Our Business. In all likelihood, the resulting chimera will make an impenetrable tangle of VBA and Javascript.

So, when are you developers going to build an End-User Development platform with decent engineering practices, to replace Excel for business users?

Re: Excel Adds JavaScript and Power BI Support

#39
post #22

Earlier quoted context omitted.

And if that works for the business... then where's the problem?

Well, on the one hand, it's not a problem. It's pure elitism to insist that laypeople learn Real Programming and make their spreadsheets the Right Way. Excel + JS is going to be an empowering tool. But on the other hand, it's going to be a nightmare to maintain when you layer it on top of VBA macros, and some poor soul is going to end up responsible for making it continue to limp along. Nobody will understand how it…

I don't think this worry comes out of elitism. On the contrary, I think it comes from trying to protect the business users - as messy as their tooling already is - from the JavaScript culture.

Re: Excel Adds JavaScript and Power BI Support

#40
post #35
post #31

VBA is well obsolete by now. I was really hoping they'd add C# or python to Excel. Yes you can use VSTO to write modules but that isn't the same - you can't send a spreadsheet with C# embedded like you can with VBA. As a result I'm using Python and Jupyter notebooks now, not as friendly as Excel but at least its modern and there are lots of libraries out there to make the platform super powerful.

I'd suggest ExcelDNA rather than VSTO. But that doesn't help with your main point (nothing to install or support, you can extend the spreadsheet without having to compile or install anything) which I completely agree with.

Agreed, thanks I do use ExcelDNA, it is much better than VSTO. But really I've given up on Excel now.
Post reply on HN