Macros are recorded in the Visual Basic for Applications programming language. A macro is an action or a set of actions that you can use to automate tasks. There are several ways to run a macro in Microsoft Excel. Excel for Microsoft 365 Excel for Microsoft 365 for Mac Excel 2021 Excel 2021 for Mac Excel 2019 Excel 2019 for Mac Excel 2016 Excel 2016 for Mac Excel 2013 Excel 2010 Excel 2007 Excel Starter 2010 More.