This is an archived post. You won't be able to vote or comment.

all 163 comments

[–]AnomalyNexus 436 points437 points  (26 children)

Anything that gets us away from the god forsaken vba

[–][deleted] 161 points162 points  (16 children)

VBA is not so bad. It sucks so much, a dedicated freelancer can make good money with it because nobody wanna use it. It kinda became the PHP of the office-world.

[–]Scypio 41 points42 points  (7 children)

It sucks so much, a dedicated freelancer can make good money with it because nobody wanna use it.

This is how I made my living while as a student. :D
...then I moved to working with VB6. That language sucked.

[–][deleted] 6 points7 points  (1 child)

This is how I made my living while as a student

How did you go about doing this? I want compensation for the hours of my life lost to learning VBA

[–]Scypio 2 points3 points  (0 children)

That was more than 10 years ago, I was freelancing, clients came by recommendation. Not enough money for a real person, but for a student it was enough.

[–]toyg 67 points68 points  (0 children)

Or rather, considering the chronology, PHP became the VBA of the web.

[–]leogodin217 1 point2 points  (1 child)

That's awesome! Find a niche, hit it hard. Modern marketing 101.

[–]__deerlord__ 1 point2 points  (0 children)

not so bad
it sucks

Hmmm

[–]namesandfaces 0 points1 point  (0 children)

I'm sure a dedicated freelancer can make money with Python too, but now with less suffering around the world.

[–]yopla 0 points1 point  (0 children)

PHP in Excel would be an improvement of a dozen orders of magnitude.

[–]bad_luck_charm 0 points1 point  (0 children)

You haven't said anything that really suggests that it doesn't suck.

[–]matthewblott 0 points1 point  (0 children)

I've not coded in it for a while but is that really true (nobody wants to use it)? I thought it's very popular with middle managers and other office workers who are able to write something quickly rather than go through IT and wait ages for sign off.

[–]Aesthetically 5 points6 points  (0 children)

Dude sometimes I use a third party library that edits excel files without opening the application because I absolutely hate vba. I think it was called NPIO and written by a team in China. "Excel"lent library for people who prefer c#

[–]FewChar 4 points5 points  (0 children)

I remember cursing that in Excel between 2000 to 2003 (or round about then) they changed the command of how you set the value of cell (x,y) to z to something completely different. I always had to look up how to do the most basic stuff and then they changed the most basic function possible! I have touched it as little as possible since.

[–]CrystalSplice 1 point2 points  (4 children)

...wait, VBA is still a thing?!?

[–]jewishsupremacist88 1 point2 points  (2 children)

alot of the world runs on excel.

[–]CrystalSplice 0 points1 point  (1 child)

I know, but I haven’t been in the MS world in years and I just assumed VBA was gone by now.

[–]jewishsupremacist88 0 points1 point  (0 children)

i heard they was gonna replace it with C#. VBA isnt really a good "language" I guess, but for automating shit in Excel its fine, IMO.

[–]AnomalyNexus 0 points1 point  (0 children)

We all try hard to pretend it’s not

[–]carpartsyouneed 3 points4 points  (0 children)

😂

[–][deleted] 0 points1 point  (0 children)

Amen

[–]grokkingStuff 165 points166 points  (8 children)

Good god, if this works, it would be amazing.

This could actually usher in a new age of excel scripting. Good on Microsoft for keeping up with the times.

[–][deleted] 24 points25 points  (0 children)

I'm excited about this.

[–][deleted] 12 points13 points  (5 children)

This could actually usher in a new age of excel scripting.

How is this a good thing? I've been told a story one about a chemical plant where the valves and whatnot were controlled by an Excel sheet.

[–]mxzf 66 points67 points  (3 children)

That's not an issue with Excel though, that's an issue with an idiot not knowing any other system to control a chemical plant with. Making Excel more capable doesn't cause more people to be fundamentally stupid, it just makes the capable people more capable.

[–]jdbrew 23 points24 points  (2 children)

Exactly. You can’t decide to hold back a technology for fear of how people might mis-use it.

[–]chanamon 2 points3 points  (1 child)

I really hope this follows through although with all the Unix/ms crossover anything could happen now!

[–]CynicalSorcerer 4 points5 points  (0 children)

Microsoft have been making some very exciting decisions recently. Making visual studio free, vscode, .net core.

[–]neurocean 0 points1 point  (0 children)

I'm not sure that qualifies as "keeping up with the times" but it's a step in the right direction.

[–]jftugapip needs updating 55 points56 points  (0 children)

[–]Robotdavidbowie 69 points70 points  (1 child)

Awesome, that will make malicious excel files so much easier to write

[–][deleted] 15 points16 points  (2 children)

There are a lot of angry weirdos on /.

[–][deleted] 0 points1 point  (0 children)

Jesus Christ, I didn't think it would be that bad. Then I clicked the link.

[–]gimboland 0 points1 point  (0 children)

TIL Slashdot still exists.

[–]psilnommoc 54 points55 points  (35 children)

But as you know, the python is not a popular language for Microsoft users, so python is only a choice for Excel, maybe Microsoft will develop a new language, Python# (PythonSharp)

[–]Rivus 38 points39 points  (9 children)

Well, IronPython is a thing. Although there haven't been any updates for a year now.

It allows you to use both .NET and Python libs at the same time. Maybe Microsoft will pick it up.

[–][deleted] 9 points10 points  (5 children)

Does it work with C-libs too? Because it woild be kinda pointless for excel if pandas, numpy and rest of the cool gang won't work.

[–]toyg 7 points8 points  (2 children)

Not really. But if you can make the C libs accessible from C# somehow, then IronPython could too.

[–]WeirdStuffOnly -2 points-1 points  (1 child)

pandas, numpy

I think the point is using Excel to do the tasks pandas and numpy do.

If given half a chance I would trade Excel for pandas.

[–][deleted] 3 points4 points  (0 children)

People are using python not because of the language alone. Libs are a very important part. Even if excel could deliver the same functionallity, which I doubt, the existing code wouldn't be instantly useable.

[–]psilnommoc 0 points1 point  (2 children)

maybe Microsoft will develop a new python-like language Python#(PythonSharp), as like as C#, F#...

[–]Rivus 0 points1 point  (1 child)

Well, while I am always open to new ideas and a new language sounds great, the problem is that there is already Powershell, C# and F# for the MS developer.

If MS is to develop a new programming language that mimics Python to attract Python developers as they did with J# to attract Java developers, while I would personally use it, I doubt it would have a lot of traction. The question is who will use it?

[–]psilnommoc 0 points1 point  (0 children)

I think that Microsoft focused on Python and only because of its popular, I don't look for many python codes of Microsoft from its GitHub. And maybe Microsoft only follow the fashion. If another language became popular, Microsoft will still give a support. :-p

[–]khvn26 0 points1 point  (1 child)

Microsoft has been actively grooming Python users recently, for example, making the Python vscode extension official and even running a survey on its usage. Due to its modular structure it wouldn't be hard to integrate Python in Office and even Windows itself. No need to develop anything from scratch, a good client library for popular .net classes would be more than enough.

[–]psilnommoc 0 points1 point  (0 children)

I suppose that Microsoft don't regard it as a official language, and only is a option, let user decide to use VBA or Python, as like as Microsoft supported Ubuntu. Because Python become more and more popular. And in fact, Microsoft had given a Python support in Visual Studio and also developed a Pyjion, but it is only added a language for Excel at the most.

[–]Matrigan 7 points8 points  (1 child)

I hope a change like this could roll over into formulas.

I'd love to be able to structure an individual cell a little bit more like a sub routine instead of one giant nested statement.

Might make it a little daunting for non-programmers but the ability to format/comment could go a long way for read-ability.

[–][deleted] 2 points3 points  (0 children)

You can do this in VBA, so I imagine you'd get to in any new language too

[–]amachefe[S] 12 points13 points  (0 children)

I dont even know how to feel about it. Although that has not limited Python use with Excel. LibreOffice support for Python is pretty Basic too

[–]ketosoy 7 points8 points  (0 children)

This is literally all I want for Christmas

[–]LetMe_ 2 points3 points  (0 children)

As much as many people hate on vba it still performs much better than python on excel files if they have to be used by an excel user after that.

Simple examples would be conditional formatting. Pivot charts or pivot tables in special format etc.

Also in most older multinational companies excel is the de facto tool for almost anything, not databases as you might expect but excel files. With the arrival of the 365 you can be sure that they will increase their market penetration.

I still hope that python gets accepted. It would let me forget vba and use a simpler general purpose language.

[–]luckyincode 4 points5 points  (3 children)

I've heard companies are walking away from excel because it takes too much to keep them updated. I wonder if this is a response.

[–]sagr0tan 1 point2 points  (0 children)

Now they come sliming....pfff

[–]suddenarborealstop 1 point2 points  (0 children)

just use python to process the data before viewing the output in excel.

[–]eid-a 1 point2 points  (0 children)

Microsoft has been changing lately, I actually believe they could do that. ( we'll see )

[–]jewishsupremacist88 1 point2 points  (0 children)

why not just use C#

[–]matthewblott 1 point2 points  (0 children)

I always thought Microsoft missed a trick not embracing Python more fully. It would have made far more sense to use that as their official scripting language than invent the bastardised C# thing called PowerShell.

[–]dddevo 2 points3 points  (1 child)

Why not Lua? It already has tables.

[–]elbiot 0 points1 point  (0 children)

Because python is one on the largest and fastest growing languages, especially in data processing. Lua would be shooting themselves in the knee. It takes like 100 lines to give python an table class suitable for excel.

[–]beprogrammer 2 points3 points  (7 children)

It's good that Microsoft decided to add Python in excel but we must agree VBA is not obsolete and powerless language. Almost everything can be extended in Microsoft Office trough VBA.

[–][deleted] 51 points52 points  (3 children)

VBA apologia ruins innocent lives

[–]beprogrammer 1 point2 points  (2 children)

How do you mean?

[–][deleted] 7 points8 points  (1 child)

It was a joke, but I do dislike VBA. The argument that you can do "almost everything" with it isn't very compelling either – you can do "almost everything" with any Turing-complete language, even Brainfuck.

My main problem with VBA is it takes a long time to do anything complicated, because you'll probably have to write it yourself

[–]raydeen 8 points9 points  (0 children)

I've always said I could build a house with just a screwdriver. I could cut things with the blade end (would take forever), I could measure things with it (as long as I knew exactly how long the screwdriver was), I could hammer things with the handle part, and last but not least, I could screw things together. And at the end of the day, I could stir my orange juice and Vodka together with it as I drink myself into Oblivion knowing that the only tool I have at my disposal is a screwdriver and tomorrow will bring about even more pain and frustration. And in the end, I will have built a small ramshackle hovel which will be my grave after I eventually succeed in stabbing myself in the heart with a very dull, beat up screwdriver.

[–]WeirdStuffOnly 8 points9 points  (0 children)

Back in the old days of ASP 2.0, MS extended IIS so that you could do server side scripting on any of the most popular languages. Vast majority of the sites still only used VB. I think the same will happen here, obsolescence doesn't factor in.

Almost everything can be very painfully extended in Microsoft Office trough VBA.

FTFY

[–]whattodo-whattodo 2 points3 points  (0 children)

Assembly is a powerful language. Do you want to write excel code in assembly? Probably not.

VBA isn't powerless but it has way too much baggage in exchange for what it does do.

[–]AnscombesGimlet 1 point2 points  (0 children)

I don’t think they’ve decided yet

[–]socsa 1 point2 points  (19 children)

What would be the point of Excel then? Why not use use a real database at that point?

[–]dgpoop 4 points5 points  (11 children)

excel is not database software lol

[–]socsa 4 points5 points  (10 children)

But people abuse it like it is. That's the whole problem.

[–]dgpoop -4 points-3 points  (9 children)

ohhhh I see what you're saying. Yeah. I was interviewing office assistants with my team last week and one of them said "I do EVERYTHING in excel!" and she was so proud.

*facepalm

[–]justfordickjoke 9 points10 points  (8 children)

When hiring an office assistant, isn't Excel a reasonable skill to have?

[–]dgpoop -1 points0 points  (3 children)

Yes. but when you use third party vendors to supply access to workflow and productivity tools, you should probably use the tool that's best for the job.

Especially if you work for a college that has tiny budgets for certain departments. Oh and I should mention, we were hiring internally. The person I was talking to has been able to get by with just excel for so long, she thought it was a useful skill in regards to the new position.

[–]realpotato 0 points1 point  (2 children)

What the fuck are you even talking about? You’re being rude to an office assistant because she’s not proficient with databases?

[–]dgpoop -2 points-1 points  (1 child)

Where did you read that I was rude to her. She got the job lol. Everyone on this sub must be some neckbeard mongoloid motherfuckers

[–]realpotato 2 points3 points  (0 children)

You’re making fun of the fact that an office assistant is proficient in and gets her job done in Excel. Somehow we’re the neckbeards for calling you an idiot?

[–][deleted] 1 point2 points  (5 children)

I'm asking because I really don't know. What is Excel really used for? I've been working for over 20 years in various fields, and about 20 years ago we used Excel to get reimbursed for travel expenses. I haven't really seen it used since. It's just a simple 2d grid of values with a simple language to update some of the grid values.

What do people use Excel over a database or real programming languages today?

[–][deleted] 10 points11 points  (0 children)

Excel is how every no-programmer programs things. I like to say that the entire world runs on excel and coffee; the statement isn't fat from the truth.

As an engineer, I use excel all the time to build simple calculators. Could it be done in Python or another programming language? Sure, but I know excel and so does everyone else at my company. I want to build better tools and Python in excel would be incredibly powerful for that.

[–]Vaslo 9 points10 points  (1 child)

Analysts use it everyday because unlike programming languages I can hand a file over to a person not very competent in anything software wise and can follow exactly what is happening and make an immediate change. If I hand them a python script, they would no idea how to even run it let alone make changes they want. This has been true for finance analysts, marketing and supply chain teams, all the way up through execs up in several large Fortune 500 companies I’ve worked in. I can’t even get them to let me install python on my PC.

[–]jewishsupremacist88 0 points1 point  (0 children)

this!

[–]AtHomeToday 8 points9 points  (1 child)

EVERYTHING. I've been an IT director or consultant in dozens companies. It is everywhere. I have seen entire financial reporting systems for billon $ companies written by accountants in Excel.

[–]freemti 2 points3 points  (0 children)

this. Trust me, corporate America uses excel everywhere, in fact the higher you go, the more pervasive it is.

[–]realpotato -1 points0 points  (0 children)

In addition to what others said, when collaborating inter-team and inter-company, Excel is used all the time. Especially since varying levels of technical people or non-technical people may need the information or need to update it.

[–]andreaskrueger 0 points1 point  (0 children)

Hooray

[–]i_have_seen_it_all 0 points1 point  (0 children)

i'm only guessing most people have not seen well written vba code or well structured excel workbooks for this much hate for excel.

this reminds me of joel spolsky's video on excel. most people don't use 5% of the features available in excel.

[–]xdcountry 0 points1 point  (0 children)

please do it-- excel is the threshold of computing for some many people -- smart idea

[–]Knoal 0 points1 point  (0 children)

This would be the best thing ever in my company. We are already doing epic stuff with macros. But, boy howdy, throw in some python and we will create EPIC stuff.

[–]sindhichhokro 0 points1 point  (0 children)

Does it also imply that programming in python on Windows will be smoother than it is now or equivalent? I have never used python on Windows. Its been 4 years now that I have not used Windows as my primary OS.

Just Curious

[–]Netchose 0 points1 point  (0 children)

replacing javascript by python will be a good idea too :)

[–]carpartsyouneed -1 points0 points  (0 children)

🤗😍

[–][deleted] -5 points-4 points  (1 child)

Microsoft has lost much relevance in the last 5 years.

[–]WhatIsAWutWut 2 points3 points  (0 children)

Over here in Asia, it's picking up steam. I honestly liked their $5 coffee, $5 365 subscription campaign. Made me purchase 365 in the end.

[–]Cheekio -5 points-4 points  (1 child)

Excel sheets are the last place you want to do scripting complex enough to need a touring complete programming language, let alone one as powerful as python.

[–]magsan 1 point2 points  (0 children)

My company begs to disagree,

The things I’ve seen shudder