
Run a macro in Excel - Microsoft Support
In Excel, you run a macro manually or automatically. A macro is an action or a set of actions that you can use to automate tasks. This topic shows you several ways to run macros manually or …
Automate tasks with the Macro Recorder - Microsoft Support
To automate a repetitive task, you can record a macro with the Macro Recorder in Microsoft Excel. Imagine you have dates in random formats and you want to apply a single format to all …
Quick start: Create a macro - Microsoft Support
If you have tasks in Microsoft Excel that you do repeatedly, you can record a macro to automate those tasks. A macro is an action or a set of actions that you can run as many times as you …
Assign a macro to a button - Microsoft Support
You can use a button (a form control) to run a macro that performs an action when a user clicks it. For example, you might use a button to automate the printing of a worksheet, the filtering of …
Create or run a macro - Microsoft Support
To save time on tasks you do often, bundle the steps into a macro. First, you record the macro. Then, you can run the macro by clicking a button on the Quick Access Toolbar or pressing a …
Change macro security settings in Excel - Microsoft Support
Learn how to change the settings that enable or disable macros in Excel, and more. Change the macro security settings to control which macros run when you open a workbook.
Enable or disable macros in Microsoft 365 files
Improve security, evaluate and mitigate the risks of running macros, and see how to enable or disable macros for Microsoft 365.
Assign a macro to a Form or a Control button - Microsoft Support
You can use a Form control button or a command button (an ActiveX control) to run a macro that performs an action when a user clicks it. Both these buttons are also known as a push button, …
Create and save all your macros in a single workbook
When you first create a macro in a workbook, it works only in that workbook. But what if you want to use the macro in other workbooks? To make your macros available every time you open …
Edit a macro - Microsoft Support
Use the Visual Basic Editor on the Developer tab to edit macros, or learn how to change macro security settings.