You cannot schedule an Excel file to open or run internally using a built-in "schedule" button within the app, but you can achieve this by using Windows Task Scheduler for local automation or Microsoft Power Automate for cloud-based workflows. These tools allow you to trigger specific actions—such as refreshing data or sending a report—at a set time or interval without manual intervention.
What You'll Need
- A computer running Windows (for Task Scheduler) or a Microsoft 365 account (for Power Automate).
- The Excel file saved in a known location (Local Drive or OneDrive/SharePoint).
- If using Task Scheduler for complex tasks, a basic VBA macro saved as an .xlsm file.
Step-by-Step
Depending on whether your file is stored on your hard drive or in the cloud, choose one of the two methods below. Note that menu labels may differ slightly based on your version of Windows or Microsoft 365.
Method 1: Using Windows Task Scheduler (Local Files)
This method is best for opening a file at a specific time or running a macro-enabled workbook on your local PC.
- Open the Start Menu, type "Task Scheduler," and press Enter.
- In the Actions pane on the right, click Create Basic Task.
- Give your task a name (e.g., "Daily Sales Report") and a description, then click Next.
- Select your trigger frequency (Daily, Weekly, Monthly, etc.) and click Next.
- Set the specific start date and time you want the file to open, then click Next.
- Under Action, select Start a program and click Next.
- In the "Program/script" box, click Browse and find the Excel executable file (usually located in
C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE) or simply type "excel" if it is in your system path. - In the "Add arguments (optional)" box, type the full file path to your Excel workbook in quotation marks (e.g.,
"C:\Users\YourName\Documents\Report.xlsx"). - Click Next and then Finish.
Method 2: Using Power Automate (Cloud Files)
This method is best for scheduling emails containing Excel data or updating rows based on a timer for files stored in OneDrive or SharePoint.
- Log into your Microsoft 365 account and open Power Automate.
- Click Create in the left-hand sidebar.
- Select Scheduled cloud flow.
- Give your flow a name, choose the starting date and time, and set the repeat interval (e.g., every 1 day), then click Create.
- Click + New step and search for the "Excel Online (Business)" connector.
- Select the action you want to perform, such as List rows present in a table or Update a row.
- Select the Location (OneDrive for Business or SharePoint), the Document Library, and the specific File.
- Add a subsequent step, such as Office 365 Outlook - Send an email (V2), to send the updated data to your team.
- Click Save and then Test to ensure the flow triggers correctly.
Common Mistakes
- Incorrect File Paths: In Task Scheduler, forgetting to put quotation marks around file paths that contain spaces will cause the task to fail.
- PC Sleep Mode: Windows Task Scheduler cannot launch a program if the computer is completely powered off. If the PC is in sleep mode, you must check "Wake the computer to run this task" in the task's Conditions tab.
- Missing Tables: Power Automate requires data to be formatted as an official "Table" (Insert > Table) within Excel; it cannot read raw cells or ranges.
- Macro Security: If scheduling a .xlsm file, the task may hang if Excel prompts the user to "Enable Content." You must set the folder as a "Trusted Location" in Excel's Trust Center settings.
Tips
- Use VBA for Automation: If you use Task Scheduler, write a
Workbook_Open()macro in your file. This allows the file to perform calculations, refresh data, and save itself automatically as soon as it opens. - Cloud Integration: Whenever possible, use Power Automate. It is more reliable than Task Scheduler because it runs on Microsoft's servers, meaning your personal computer doesn't need to be on for the schedule to work.
- Relative Paths: When sharing scheduled files in a network environment, use UNC paths (
\\Server\Folder\File.xlsx) instead of mapped drives (Z:\File.xlsx) to avoid connection errors.
Troubleshooting
If your scheduled Excel file does not open or update, try these steps in order:
- Manual Test: Copy the exact path you put in the scheduler and paste it into the Windows Run dialog (Win + R). If it doesn't open, the path is wrong.
- Check Permissions: Ensure the user account assigned to the task has "Full Control" permissions for the folder where the Excel file is stored.
- Verify Table Names: For Power Automate, ensure the table name in the Excel file matches the name selected in the flow. If you renamed the table in Excel, you must update the flow.
- Check Task History: In Task Scheduler, click the "History" tab for your task. Look for error codes (like 0x1) which indicate if the program failed to start or was blocked by a system setting.
Frequently Asked Questions
Can I schedule an Excel file to email itself automatically?
Yes, but not within Excel alone. You must use Power Automate to trigger an email at a specific time or use a VBA macro combined with Windows Task Scheduler to trigger the Outlook mail client.
Will Task Scheduler work if my laptop is closed?
No. If the laptop is shut down or in hibernation, the task will not run unless you have configured the "Wake the computer" setting and the hardware supports it. Power Automate is the better choice for "always-on" scheduling.
Do I need a special version of Excel for this?
Task Scheduler works with any version of Excel. Power Automate requires a Microsoft 365 subscription and the file must be stored in a cloud location like OneDrive.
Can I schedule a file to refresh its data connections?
Yes. If using Task Scheduler, you can create a VBA macro that calls ActiveWorkbook.RefreshAll and set that macro to run on open. In Power Automate, you can use the "Refresh a Power BI dataset" action if the Excel file is the source for a dashboard.
How do I stop a scheduled Excel task?
For Windows, open Task Scheduler, find your task in the Library, right-click it, and select Disable or Delete. For Power Automate, go to "My flows," select the flow, and toggle the status to Off.