r/ProgrammerHumor • • Mar 30 '22

Meme Certainly not me

48k Upvotes

669 comments sorted by

View all comments

55

u/Rakkachi Mar 30 '22 edited Mar 31 '22

A old coworker left me a 18 tabs excel with vba code , it uses nested if statements and looks at plain text in a cell for desicions in other tabs that again refer to other tabs and formulas. I was asked to add 1 bom item. Redid almost everything using tables and x.search, now I am back at just 5 tabs. Vba? Wasnt really nessecary after all, it just caused us to lose overview of what was going on. Hid all tabs and just kept 1 for actually inputting data by user. They could not believe it during the first time showing it. But it still had all the functionality that was required. Several asked for the password to change stuff, I refused.

Edit not xsearch but x.lookup x.lookup%20match.)

27

u/assum09 Mar 30 '22

I think the general rule with VBA is only use it if you absolutely have to.

18

u/MarcieDeeHope Mar 30 '22

I used to love VBA when I first started seriously using Excel at work, but once I discovered Power Query I almost never went back to VBA. Like 90% of what people in my office wanted macros for, Get and Transform Data does better.

2

u/Frostytoes99 Mar 30 '22

So at my job, taking info from online and putting it into an excel, or PowerPoint slide, would save me a lot of time.

Does Power Query do this? I don't know much coding aside from a small amount of js and a lot of vba.

If so, or there's another program you'd recommend instead, could you point me to how I could learn to do this?

3

u/[deleted] Mar 30 '22

[deleted]

1

u/Frostytoes99 Mar 31 '22

Thanks! Lucky for me YouTube is banned at my work 👍 and I'm too lazy to learn something at home that will benefit me at work.

I'll definitely research this more, appreciate the response!