To get a version of Excel that runs VBA (Visual Basic for Applications), you should use the desktop versions of Microsoft Excel, specifically Excel for Windows or Excel for Mac. VBA is built into these desktop versions, allowing you to create and run macros easily.
Excel for the web does not support VBA, so if you need to work with VBA, ensure you have the desktop version installed. You can obtain it through a Microsoft 365 subscription or by purchasing a standalone version of Microsoft Office that includes Excel.
References: