

UPDATE (3MAR14) Check out 3 Reasons To Use VBA. (Well … it’s harder to over-do sriracha, but that’s another discussion.)ĭoes anyone else have comments, questions, warnings or stories to share about VBA? My only warning is that VBA is like sriracha: you can over-do it. I set it to run a task that took 48 hours, while I went on with my life and occasionally checked to ensure that the job was still running. Thus, some users can feel like they’ve been abandoned to poke around in a dark alley called The Twilight Zone VBA Editor.Įxcel VBA is splendid. But their Excel wiz may not be familiar with VBA AND have the wherewithal to do the forensics on someone else’s code. Most folks do know an Excel wiz in their life. So, if the VBA-happy developer quits to go chase other dreams in a foreign land, it’s going to be an added challenge for the users to get the document modified or repaired. Many MANY users aren’t aware of VBA or they don’t understand it. Truly, the Numero Uno reason for avoiding (or limiting) use of VBA: If you don’t use good comments in your code, you’ll struggle to understand your own work if you have to revisit it weeks or months later. If the macro is designed to delete information and you run the macro at the wrong time or, the code is wrong and deletes work you spent hours creating … ! You’ll look up and see the UN-DO arrow grayed out. There is no UN-DO! This bears repeating: There is no UN-DO!

Some users freak out when they open the workbook and see the security warning about enabling macros. The VBA code has to be manually modified, or you just live with the sheet being called February. VBA does not adjust in the way that formulae do when you move data from one worksheet to another, insert a column, delete rows, etc.Įxample: you have a sheet called February. Sometimes writing, testing and debugging the script will take longer than using worksheet features. There are good reasons to avoid (or at least be cautious about) using VBA. It’s seductive to start thinking in VBA and head straight to the VBA editor with every task. I’ve used VBA to break the passwords on other spreadsheets. The power that’s available is almost frightening.
