Visual Basic Application (VBA) is a subset of the powerful Visual Basic programming language and is included with most Office applications.
These steps can include typing text or numbers, clicking cells or commands on the ribbon or menus, formatting cells, rows, or columns, or even importing data from an external source, say, Microsoft Access. When you record a macro, the macro recorder records all the steps in Visual Basic for Applications (VBA) code.
Macro Recorder captures mouse events and keystrokes like a tape recorder, allowing you to automate tedious procedures on your computer.