
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 …
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.
Create and save all your macros in a single workbook
To make your macros available every time you open Excel, you can create them in a workbook called Personal.xlsb. That’s a hidden workbook stored on your computer, which opens in the …
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.
Edit a macro - Microsoft Support
To edit a macro that is attached to a Microsoft Excel workbook, you use the Visual Basic Editor. Important: Before you can work with macros, you have to enable the Developer tab. For more …
Work with VBA macros in Excel for the web - Microsoft Support
Although you can't create, run, or edit VBA (Visual Basic for Applications) macros in Excel for the web, you can open and edit a workbook that contains macros. Any existing macros will remain …
Quick start: Create a macro - Microsoft Support
Suppose that every month, you create a report for your accounting manager. You want to format the names of the customers with overdue accounts in red, and also apply bold formatting. You …
Find Help on using the Visual Basic Editor - Microsoft Support
Microsoft Visual Basic for Applications (VBA) enables non-programmers to record, create, and edit macros that can automate tasks in Office applications. This article explains where you can …
Customize how Excel starts - Microsoft Support
If you no longer need a specific workbook to open, you can stop it from being opened when you start Excel. If a workbook that is opened when you start Excel contains automatic macros, …