Automate Excel Macros: Scheduling with Task Scheduler

Ruth Jul 09, 2026

Automating repetitive tasks in Excel can significantly boost productivity. One powerful way to achieve this is by using Excel macros in conjunction with Windows Task Scheduler. This combination allows you to automate complex tasks at specific times or intervals, freeing up your time for more strategic work. Here's a step-by-step guide on how to run Excel macros with Task Scheduler.

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 in, ensure you have enabled the Developer tab in Excel. This tab contains tools for creating and managing macros. If it's not visible, right-click on the Ribbon and select 'Customize the Ribbon', then check 'Developer'.

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

Creating and Saving Your Macro

The first step is to create and save your macro. A macro is a series of instructions that Excel can follow to automate tasks. Here's how to create one:

Task List in Excel
Task List in Excel

1. Press 'Alt + F11' to open the Visual Basic for Applications (VBA) window. If this is your first time using VBA, you'll need to enable it. Go to 'File' > 'Options' > 'Customize Ribbon', then check 'Developer'.

Writing Your Macro

Excel Task Priority Tracker Template for Project Management | Priority Matrix & To-Do List Planner
Excel Task Priority Tracker Template for Project Management | Priority Matrix & To-Do List Planner

2. In the VBA window, go to 'Insert' > 'Module' to insert a new module. Here, you can write your macro using VBA code. If you're not familiar with VBA, you can record your actions in Excel and it will convert them into code.

3. To record a macro, go back to Excel, then click on 'Developer' > 'Record Macro'. Give your macro a name, choose a shortcut key if you want, and click 'OK'. Now, perform the actions you want to automate. When you're done, click 'Stop Recording' in the 'Developer' tab.

Saving Your Macro

Make a chore planner in Excel
Make a chore planner in Excel

4. Once you've written or recorded your macro, you need to save it. Go to 'File' > 'Save As' and choose a location to save your Personal Macro Workbook (PMW). This is where Excel stores your macros.

5. To make your macro available in all workbooks, save the PMW in your user profile folder. The default location is 'C:\Users\YourUsername\AppData\Roaming\Microsoft\Excel\XLSTART'.

Setting Up Task Scheduler

Most-liked video | 865K views · 5.6K reactions | A professional way to create task tracker in #excel  #exceltips #exceltutorial #learnexcelonline #excelhelp  #ProductivityHacks #SpreadsheetSkills  #microsoftexceltutorial #fyp #fypage #fypppppppppppppp | Fahad Raza | Facebook
Most-liked video | 865K views · 5.6K reactions | A professional way to create task tracker in #excel #exceltips #exceltutorial #learnexcelonline #excelhelp #ProductivityHacks #SpreadsheetSkills #microsoftexceltutorial #fyp #fypage #fypppppppppppppp | Fahad Raza | Facebook

Now that your macro is saved, it's time to set up Task Scheduler to run it at your desired time or interval.

1. Press 'Win + R' on your keyboard to open the Run dialog box. Type 'taskschd.msc' and press Enter to open Task Scheduler.

5 Cool Microsoft Excel Macros for Sorting Data
5 Cool Microsoft Excel Macros for Sorting Data
How to Create & Update Planner Tasks from Excel (or Teams)
How to Create & Update Planner Tasks from Excel (or Teams)
Save Macros In Active Workbook To Clean Up Financial Databases
Save Macros In Active Workbook To Clean Up Financial Databases
How to Record a Macro in Excel - A Step by Step Guide
How to Record a Macro in Excel - A Step by Step Guide
How to Add a Macro to the Toolbar in Excel | MyExcelOnline
How to Add a Macro to the Toolbar in Excel | MyExcelOnline
How to Run Macro in Excel
How to Run Macro in Excel
a poster with the words data entry on multiple excel worksheets at once in black and yellow
a poster with the words data entry on multiple excel worksheets at once in black and yellow
All You Need to Learn about Excel Macros and VBA
All You Need to Learn about Excel Macros and VBA
How to Create Complex Macros in Excel
How to Create Complex Macros in Excel
How to Create & Use Excel Macros (Real world example)
How to Create & Use Excel Macros (Real world example)
Add Cool Features to Your To Do Lists in Excel
Add Cool Features to Your To Do Lists in Excel
Macros in Excel with VBA code examples - MacrosInExcel.com
Macros in Excel with VBA code examples - MacrosInExcel.com
the advanced excel chart sheet is shown in green and has instructions on how to use it
the advanced excel chart sheet is shown in green and has instructions on how to use it
Macros First Step
Macros First Step
Unhide All Worksheets Using Macros In Excel
Unhide All Worksheets Using Macros In Excel
an excel spreadsheet showing the total sales and averages for each item in the list
an excel spreadsheet showing the total sales and averages for each item in the list
Easy on the eyes planning!
Easy on the eyes planning!
a poster with the text, free materials ms excel create a smart task tracker in excel using checkboxes
a poster with the text, free materials ms excel create a smart task tracker in excel using checkboxes
How to Edit a Macro in Excel - Tutorial
How to Edit a Macro in Excel - Tutorial
How to Record a Macro in Excel
How to Record a Macro in Excel

Creating a New Task

2. In the right-hand panel, click on 'Create Task'. This will open the 'General' tab where you can name your task and set up the trigger.

3. In the 'Triggers' tab, click on 'New'. Here, you can set up the trigger for your task. For example, you can choose to run the task 'Daily' at a specific time, or 'Weekly' on certain days and times.

Setting Up the Action

4. In the 'Actions' tab, click on 'New'. Here, you'll set up the action that Task Scheduler will perform when the trigger occurs. Choose 'Start a program' as the action.

5. In the 'Program/script' field, browse to your Excel executable file (usually 'C:\Program Files\Microsoft Office\Office16\EXCEL.EXE'). In the 'Add arguments' field, type '@' followed by the full path to your PMW. For example, '@C:\Users\YourUsername\AppData\Roaming\Microsoft\Excel\XLSTART\Personal.xlsm'.

6. Click 'OK' to save your new task. Your macro will now run automatically at the time and interval you specified.

Congratulations! You've successfully set up Excel macros to run with Task Scheduler. This powerful combination can save you countless hours of work and help you stay organized. Regularly review and update your tasks to ensure they're still relevant and beneficial.