Automate Excel: Schedule Macros to Run Automatically

Victoria Jul 07, 2026

Automating tasks in Excel can save you time and reduce human error. One way to do this is by scheduling macros to run automatically. A macro is a series of instructions that Excel can follow to perform a task or a set of tasks. Let's explore how you can schedule a macro to run automatically in Excel.

How to Create Excel Macros So You Can Work Faster (+ video tutorial)
How to Create Excel Macros So You Can Work Faster (+ video tutorial)

Before we dive into the steps, ensure that you have already recorded or created the macro you want to automate. If you haven't, you can do so by clicking on the 'Developer' tab, then 'Record Macro'. Once you've recorded your macro, you're ready to schedule it.

How to Create Macros in Excel Tutorial
How to Create Macros in Excel Tutorial

Understanding Macro Settings

Excel provides several options for running macros automatically. The first step is to understand these settings and choose the one that best fits your needs.

5 macros I use to automate my Excel workbook
5 macros I use to automate my Excel workbook

Macros can be set to run automatically when you open a workbook, or they can be set to run at specific times or intervals. They can also be set to run in the background, without requiring user interaction.

Macro Security Settings

Easy Simple Smart
Easy Simple Smart

Before scheduling a macro, ensure that your macro security settings allow the macro to run. You can find these settings in the 'Developer' tab under 'Macro Security'.

If your macro is not digitally signed, you'll need to adjust your security settings to allow it to run. Be cautious when adjusting these settings, as they affect the security of your workbook.

Enabling the Developer Tab

How to Record a Macro in Excel - A Step by Step Guide
How to Record a Macro in Excel - A Step by Step Guide

If you don't see the 'Developer' tab in your Excel ribbon, you'll need to enable it. You can do this by right-clicking on the ribbon and selecting 'Customize the Ribbon'. Then, check the box next to 'Developer'.

Alternatively, you can enable the 'Developer' tab in the 'File' menu under 'Options', then 'Customize Ribbon'.

Scheduling a Macro to Run Automatically

How to Enable Macros in Excel Without Risks
How to Enable Macros in Excel Without Risks

Now that you've understood the macro settings and ensured that your macro is secure and enabled, let's schedule your macro to run automatically.

There are two main ways to do this: using the 'ThisWorkbook' object or using the 'Workbooks.Open' method.

How to Enable Macros in Excel Without Risks
How to Enable Macros in Excel Without Risks
How to Run Macro in Excel
How to Run Macro in Excel
How to Record a Macro in Excel
How to Record a Macro in Excel
an image of a calendar on the computer screen with time and date options for each month
an image of a calendar on the computer screen with time and date options for each month
How to Edit a Macro in Excel - Tutorial
How to Edit a Macro in Excel - Tutorial
How to Enable Macros In Excel?
How to Enable Macros In Excel?
3 Easy Methods to Create Button in Excel for Macros
3 Easy Methods to Create Button in Excel for Macros
Complete Your Day Book By Adding Multiple Entries Using Macros in Excel
Complete Your Day Book By Adding Multiple Entries Using Macros in Excel
How to Create and Record Macros in Excel?
How to Create and Record Macros in Excel?
Creating a Stopwatch in Excel (Basic + Toastmasters Style)
Creating a Stopwatch in Excel (Basic + Toastmasters Style)
Macros First Step
Macros First Step
5 Cool Microsoft Excel Macros for Sorting Data
5 Cool Microsoft Excel Macros for Sorting Data
How to Record a Macro in Excel • My Online Training Hub
How to Record a Macro in Excel • My Online Training Hub
Automate repetitive tasks by recording macros in Microsoft Excel
Automate repetitive tasks by recording macros in Microsoft Excel
the microsoft excel date and time functions poster
the microsoft excel date and time functions poster
a computer screen with the words use macro recorder in excel
a computer screen with the words use macro recorder in excel
Macros in Excel with VBA code examples - MacrosInExcel.com
Macros in Excel with VBA code examples - MacrosInExcel.com
Creating your Employee Schedule in Excel
Creating your Employee Schedule in Excel
how to add macro to the quick access toolbar ribbon in excel for beginners
how to add macro to the quick access toolbar ribbon in excel for beginners
Save Macros In Active Workbook To Clean Up Financial Databases
Save Macros In Active Workbook To Clean Up Financial Databases

Using the 'ThisWorkbook' Object

The 'ThisWorkbook' object allows you to run a macro automatically when a specific workbook is opened. This is useful when you want the macro to run every time you open a particular workbook.

To use the 'ThisWorkbook' object, open the Visual Basic for Applications (VBA) editor by pressing 'Alt + F11'. Then, double-click on the 'ThisWorkbook' object in the Project Explorer. This will open the 'ThisWorkbook' module, where you can add your code.

Using the 'Workbooks.Open' Method

The 'Workbooks.Open' method allows you to run a macro automatically at a specific time or interval, regardless of whether a workbook is open or not. This is useful when you want the macro to run at a specific time every day, for example.

To use the 'Workbooks.Open' method, you'll need to create a new VBA module and add your code there. You can do this by going to the 'Insert' menu in the VBA editor and selecting 'Module'.

Remember, when scheduling a macro to run automatically, it's important to consider the impact it might have on other users or processes. Make sure that the macro won't interfere with other workbooks or cause any unwanted effects.

In the world of automation, Excel macros are a powerful tool. Scheduling them to run automatically can save you time and reduce errors. Whether you're using the 'ThisWorkbook' object or the 'Workbooks.Open' method, you now have the knowledge to automate your macros and take your Excel skills to the next level.