The macro is not the problem. The macro with no documentation, no owner, and no one who remembers why it does what it does — that is the problem.
Somewhere in your organisation right now, there is a workbook running a macro nobody wrote this year. It generates a report that goes to a senior committee. It works — mostly. Nobody is entirely sure what happens on the third Tuesday of a month-end that falls on a public holiday, because the person who knew left eighteen months ago and their replacement has been told not to touch it.
That is not a macro problem. That is a governance problem wearing a macro’s clothes.
When a macro is the right answer
VBA gets a harder time than it deserves. For a narrow class of problems — automating repetitive formatting tasks, generating templated outputs from structured data, processing fixed-schema inputs that arrive in the same format every month — a well-written Excel macro is a legitimate and practical solution. It requires no infrastructure, no deployment, no IT ticket. A competent analyst can build it, and a competent analyst can maintain it. That is not nothing.
The mistake is not using macros. The mistake is using them without the disciplines that any other piece of production code would demand.
The six rules of macro hygieneRange("C14") breaks the moment anyone inserts a row. Named ranges — defined once in the workbook and referenced consistently throughout — give the macro something stable to hold onto. If the data moves, you update the name, not every line of code that touches it. This is the single change that most extends the operational life of a macro.
A macro with documentation, named ranges, a change log, and two people who understand it is not a time bomb. It is a tool. The difference between the two is discipline, not technology.
Knowing when to move on
None of this makes VBA the right long-term answer for processes that grow in complexity, frequency, or regulatory visibility. The appropriate migration path — VBA to Python, Python to a proper data pipeline, or directly to an enterprise workflow tool — depends on the process, not on a general preference for newer tooling.
The trigger for migration is usually one of three things: the logic has become too complex to manage safely in a macro; the process is now running frequently enough to warrant proper monitoring and error handling; or the output is feeding something that regulators or auditors will scrutinise directly. When any of those conditions are met, the macro has done its job. Rebuild it properly.
The macros that cause operational incidents are rarely the ones someone built badly on purpose. They are the ones built sensibly, under time pressure, without the surrounding disciplines — and then inherited by people who had no context for them. That is a solvable problem. The solution is not to stop writing macros. It is to treat them with the same rigour you would apply to any other piece of code running in a production environment.
If you would not deploy an application without documentation, a change process, and a second person who understands it, you should not deploy a macro without those things either. The stakes are often identical.