How to automate daily reports: Excel 2021 + Power Automate + Windows Task Scheduler

La création et l’envoi manuels de rapports quotidiens peuvent être des tâches répétitives et chronophages. Cependant, avec la puissante combinaison d’Excel 2021, Power Automate et du Planificateur de tâches Windows, vous pouvez créer un système entièrement automatisé qui génère, met à jour et distribue vos rapports chaque jour — sans lever le petit doigt.

Ce blog vous guide pas à pas pour mettre en place un tel système d’automatisation, à l’aide d’outils que vous possédez probablement déjà si vous utilisez Office 2021 + Windows 11.

Pourquoi automatiser les rapports quotidiens ?

L’automatisation des rapports permet de :

  • Save time and eliminate redundant tasks
  • Reduce errors due to manual handling
  • Ensure timely delivery data
  • Improve tracking and decision-making

Si votre rôle implique la gestion des stocks, des finances, des KPI de projets, de la performance des employés ou des ventes, l’automatisation garantit que les bonnes données atteignent les bonnes personnes à temps.

Required tools

  1. Excel 2021 – for data analysis and report creation
  2. Power Automate (Desktop) – to create automated workflows
  3. Windows Task Scheduler – pour planifier l’exécution
  4. Office 2021 + Windows 11 – la base pour l’intégration et l’automatisation

Step 1: Create the Excel template for the report

  1. Design a reusable report template in Excel 2021
  2. S'il vous plaît, utilisez Tables, formulas, and pivot tables to organise your data dynamically
  3. Add more named beaches pour une référence cohérente dans l’automatisation
  4. Save the file in a fixed location, for example: C:\Reports\DailyReport.xlsx

Examples of champions :

  • Date
  • Department
  • Total sales
  • Employee performance
  • Stock status

Étape 2 : Préparer Excel pour l’automatisation

a. Enable macros (optional)

If your report involves macros:

  • Access File > Options > Trust Centre > Trust Centre Settings > Macro Settings
  • Select “Enable all macros”

b. Save as Macro-Enabled Workbook (if necessary)

Save your file as .xlsm if you use VBA scripts.

Step 3: Use Power Automate Desktop to create a flow

Microsoft Power Automate Desktop is pre-installed with Windows 11 Pro. Here's how to create an automation to refresh Excel data and save/export the report.

Launch Power Automate Desktop

  1. Open Power Automate Desktop
  2. Click New stream and name it Generate Daily Report

b. Add actions to the flow

  1. Mitsubishi Lancer
    • Action Mitsubishi Lancer
    • Uncheck “Start Excel with a new document”
    • Define the path to your Excel file
  2. Update data
    • Action Run an Excel macro You Refresh all data connections if you use external sources
  3. Save as PDF
    • Action Save Excel as
    • Format: .pdf
    • Path: C:\Reports\Exports\DailyReport_{Date}.pdf
  4. Send an email (optional)
    • Action Send an email
    • Attach the generated PDF
    • Add recipients and subject as: “Daily Sales Report – {Date}”
  5. Close Excel
    • Action Close Excel
    • Ensure “Save document” is ticked

Étape 4 : Tester le flux d’automatisation

Manually execute the flow the first time:

  • Check if the Excel file opens correctly
  • Confirm data update and export
  • Ensure the email (if enabled) is received correctly

Step 5: Plan Your Automation with Task Scheduler

To run the flow automatically every day:

Open Task Scheduler

  1. Press Win + S and search Task planner
  2. Select Create a basic task

b. Configure the scheduling

  1. Nom : « Automatisation rapport quotidien »
  2. Trigger Daily at the desired time (e.g.: 8:00 AM)
  3. Action Start a programme
  4. Programme/script :

C:\Program Files (x86)\Power Automate Desktop\PAD.Console.Host.exe
Add arguments :
run –name « GenerateDailyReport »

Troubleshooting advice

Problem Solution
Power Automate is not launching Excel Assurez-vous qu’Excel est fermé avant de démarrer l’automatisation
Task Scheduler Failed Exécutez en tant qu’administrateur, vérifiez le chemin
The file is not refreshing the data Use the correct macro or connection settings
L’automatisation saute des étapes add actions to Pause or delay in the stream
The reports are not being sent Vérifiez les paramètres SMTP et l’accès au réseau

Best practices

  • S'il vous plaît, utilisez Relative file paths if you work on multiple systems
  • Protect your Excel file with security features to prevent manual modifications
  • Document the workflow to facilitate updates or team sharing
  • Define retry attempts in Power Automate for greater error tolerance
  • Store automation logs for auditing and error tracking

Conclusion

With Office 2021 + Windows 11 et des outils comme Power Automate Desktop et le Planificateur de tâches, l’automatisation des rapports quotidiens est non seulement réalisable mais aussi efficace et évolutive. Cette configuration est idéale pour les professionnels et les équipes recherchant une productivité accrue, une meilleure cohérence et des flux de travail rationalisés.

FAQs

  1. Can I use Power Automate without an internet connection? Yes, Power Automate Desktop runs locally and does not require the internet unless sending emails or downloading reports.
  2. Does this work with older versions of Office or Windows? Certain features such as Power Automate Desktop require Windows 10/11 and Office 2021 or Microsoft 365. Older versions may not be compatible.
  3. What if my Excel data comes from external sources? Ensure data connections are configured for automatic refresh, or use macros to update them before exporting.
  4. Can I generate multiple reports from a single Excel file? Yes. Power Automate can loop through different sheets or filters and save each report separately.
  5. Is it safe to automate confidential reports? Yes, but it is recommended to protect files with passwords, use encrypted emails, and restrict access to feeds and directories.

Leave a Reply

Your email address will not be published. Required fields are marked *

You were not leaving your cart just like that, right?

You were not leaving your cart just like that, right?

Enter your details below to save your shopping cart for later. And, who knows, maybe we will even send you a sweet discount code :)