Macros are scripts that let you run operations in the SOLIDWORKS software automatically.
You can create a macro and program it outside of the SOLIDWORKS software, or you can record a macro that captures a sequence of actions and commands as you perform them in the SOLIDWORKS software.
You can run a macro from the Macro toolbar or the Tools menu.
You can also create a macro customization that lets you run a macro from its own toolbar button or with a keyboard shortcut or mouse gesture.