A recorded or coded sequence of actions that automates repetitive Excel tasks.
Try it with AIA macro automates tasks in Excel. You can record clicks into a macro or write one in VBA (Visual Basic for Applications). Macros live in .xlsm files and can loop, branch, and call Excel's full object model.
Only enable macros from sources you trust — VBA can run arbitrary code on your machine.