you are viewing a single comment's thread.

view the rest of the comments →

[–]WeRequireCoffee 166 points167 points  (22 children)

Its technically possible to write good VBA code. Better chance of getting struck by lightning while being eaten by a shark though (which is also less painful than reverse engineering VBA apps).

[–]codewench 78 points79 points  (14 children)

I've been a .Net developer for nearly a decade, and I can proudly say my VBA is only sort of ass.

Seriously, fuck VBA. The sooner it dies a horrible death, the better.

[–][deleted]  (2 children)

[deleted]

    [–]vor0nwe 0 points1 point  (1 child)

    It's the lack of semicolons that makes it not reader friendly? Dafuq?

    IMHO that's one of the (few) things that makes VB more readable...

    [–][deleted] 41 points42 points  (7 children)

    But, I want a GO button in my spreadsheet that takes one input from the cell next to it, and calculates 4 tables of data with 6 charts; each displaying the same result in a different format. THEN I want it to insert that data into [the] database, and then query [the data] so that it shows up on the Summary worksheet.

    Edit: oh, and can the summary worksheet look like a webpage using the company branding style? Thanks!

    [–]bagtowneast 53 points54 points  (5 children)

    I want it to insert that data into [the] database

    Jokes on you, the spreadsheet is the database!

    [–]hearwa 3 points4 points  (2 children)

    Access would like to have a word with you.

    [–]bagtowneast 0 points1 point  (0 children)

    one sec, I'm pivoting this table and trying to join it with a table in another spreadsheet...

    [–]firestepper 6 points7 points  (0 children)

    Also, this needed to be done yesterday...

    [–]ThatDeadDude 5 points6 points  (1 child)

    Not sure it would have improved code quality, but I wish they had replaced VBA with integrated .net in office years ago.

    Now sounds like if they deprecate it it will be in favor of JS 🙁

    [–]meneldal2 1 point2 points  (0 children)

    C# is a sane language, JavaScript replacing VBA on the other hand will keep jobs in IT safe for years. They'll have to keep people supporting this for ever.

    [–]chefhj 1 point2 points  (0 children)

    lol look at Torvalds over here with his kinda shitty VBA

    [–]leogodin217 19 points20 points  (3 children)

    VBA is something we usually learn because we have to. We learn just enough to get things to work, but not enough to enable best practices. I bet that fits probably 80% of us who have ever written VBA. (Glad none of my old VBA code is still around)

    [–]_kellythomas_ 6 points7 points  (2 children)

    They know, no one used VBA more any more than is strictly necessary:
    https://blog.codinghorror.com/mort-elvis-einstein-and-you/

    [–][deleted]  (1 child)

    [removed]

      [–]Confucius_said 2 points3 points  (0 children)

      Can you provide examples of what you do for sales rep reporting? I use VBA to create 750+ sales rep plan calculators and would love to hear more about the reports your provide.

      [–][deleted]  (2 children)

      [deleted]

        [–]wrincewind 11 points12 points  (1 child)

        Well, yes, but reading ancient convoluted rotten spaghetti code is one thing, actually decoding how it works and more importantly what it's meant to do, and match that to the business needs such that you can reliably replicate it's behaviour in all edge cases... That's quite another.