activities
latest
false
Important :
Veuillez noter que ce contenu a été localisé en partie à l’aide de la traduction automatique. La localisation du contenu nouvellement publié peut prendre 1 à 2 semaines avant d’être disponible.
UiPath logo, featuring letters U and I in white

Activités de productivité

Dernière mise à jour 11 nov. 2025

À propos du package d'activités Excel

The UiPath.Excel.Activities package helps automate all aspects of Microsoft Excel, which is one of the most commonly used tools across industries. It contains activities that allow you to read information from a cell, columns, rows, or ranges, write to other spreadsheets or workbooks, execute macros, and even extract formulas. Moreover, you can sort data, color-code it, or append additional information.

Attention : nous ne prenons plus en charge les activités classiques sur les projets hérités à partir de la version 3.0.0. Vous pouvez toujours utiliser les activités classiques dans les versions antérieures à 3.0.0. Pour plus d’informations, consultez la page Suppressions à venir .

Compatibilité

Remarque : le module UiPath.Excel.Activities est compatible avec les versions suivantes de Microsoft Excel :
  • 2013
  • 2016
  • 2019
  • 2021
  • 2024
  • Office 365
  • Office 2024

Configuration

You can enable the modern experience as explained in Project Settings.

Activités Modern

Les activités regroupées sous Modern sont les activités les plus récentes initialement conçues pour le profil StudioX.

The Excel Modern design experience and activities provide the same functionality of the StudioX business activities by default in Studio. Follow the tutorial section to find out more about working with Excel activities in Studio. For a full guide, check the Excel Automation in the StudioX guide.

Studio Modern design experience

A modern design experience is available in the Studio profile starting with Studio v2021.10 and UiPath.Excel.Activities v2.11.0. In the modern experience, the modern activities replace the classic activities in the Studio profile, and the StudioX design experience is brought to Studio.

The modern design experience is enabled by default. You can select the design experience for each project from the Excel activities project settings. When the classic experience is enabled for a project, the classic app integration activities that do not support interacting with Excel from the plus menu are available in the Activities panel in Studio instead of the modern activities.

Tutoriel

Add the Use Excel File scope activity to indicate the file to automate and configure its child activities by selecting Excel data from the plus menu of each property without having to manually enter expressions:

  1. Use the folder icon to browse the contents of the file and select data that matches the type of each property. For example, you can select cells, ranges, tables, sheets, or charts from the worksheet. You can also indicate the current row or current sheet in an iteration.

  2. If you find it easier to work in Excel, in the In range field, select the plus menu for more options, then select Excel, and then Indicate in Excel to select data directly from the file.
    Note: This functionality requires that you install the Excel Add-in.


  3. Utilisez l'option Entrée personnalisée ( Custom Input ) pour spécifier manuellement l'entrée en fonction des noms de table, de graphique ou de feuille, ou pour saisir des références à une cellule ou à une plage.


If the file you want to automate does not exist yet, you can still use the options in the plus menu by defining a file with the same structure as a template in the Use Excel File activity.

Choosing the most suitable activity type

To decide which type of activity you should use, check the following table.

Note: Modern activities include a wider range of options than classic ones.
Type d’activitéCompatibilité du projetExcel installation requiredPerformancesExpérience utilisateurBest used when
Use Excel File (Modern) Windows, Cross-platformOui (Yes)High (memory optimized)Visual and guided (Plus menu, Indicate in Excel)Building modern workflows, working across profiles.
Excel Application Scope (Classic) Windows, Windows-legacyOui (Yes)Best for large or complex user interface tasks.Manual setup requiredAutomating legacy Excel user interface workflows. Classic Excel activities are not suitable for new automations. It is recommended to use modern activities instead.
Activités de classeurWindows, Cross-platform, Windows-legacyNon (No)Good for lightweight headless operations.Simple expression-basedExcel is not installed, or the user interface is not required.

Activités de classeur

Workbook activities can be executed even if Microsoft Excel is not installed on the machine and can only read or write data to and from the file.

Vous disposez de deux méthodes pour indiquer le fichier à traiter dans vos activités :
  • Indiquez le chemin d'accès au fichier dans chaque activité de classeur. Lorsque vous utilisez cette option, le fichier est chargé dans la mémoire au moment de l'exécution pour chaque activité qui le traite. Cette option convient mieux aux fichiers plus petits.
  • Connect your Studio project to the Excel file from the Data Manager to add it as a resource, then reference the resource in each Workbook activity by selecting it from the plus menu. Using this option, once the file is loaded, it remains in the memory until all the activities in the defined scope are executed, providing the best runtime performance when working with larger files and a larger number activities. To optimize performance, set the scope to the container closest to where the activities that use the resource are placed in the workflow. For more information, check Using the Data Manager.


Activités d’intégration d’applications

Les activités d'intégration d'applications classiques nécessitent l'installation de l'application Excel sur la machine sur laquelle elles s'exécutent. Pour les feuilles de calcul volumineuses et complexes qui s'étendent sur un grand nombre de lignes et de colonnes, nous vous recommandons d'utiliser les activités Intégration d'applications ( App Integration ), car ces activités offrent les meilleures performances et la meilleure cohérence.

Toutes les activités d'intégration d'applications, à l'exception des activités CSV, doivent être incluses dans Étendue d'application Excel (Excel application scope) pour fonctionner. À partir de la version 2.10.4 du pack d’activités Excel, ces activités peuvent également être incluses dans l’activité Utiliser un fichier Excel .

Des activités dédiées vous permettent de travailler avec des fichiers .csv, alors que tous les autres fonctionnent avec .xlsx et .xls. Celles qui ne fonctionnent qu'avec l'activité Étendue d'application Excel (Excel application scope) peuvent également fonctionner avec les fichiers .xlsm.

Dépannage et limitations

Note: The Excel Activities Pack does not support the old Excel Binary File Format (.XLS) specific to Microsoft Excel 95.
  • When you use activities that read, copy, or append ranges, if a cell contains formatting information, Excel considers that cell as containing data, even though it appears empty.
  • The Microsoft Office 2016 version 1708 (Build 8431.2079) changes the window title of files that are being edited and saved from "FileName.xlsx - Excel" to "FileName.xlsx - Saved". After closing the file, the filename reverts to normal.

    Des problèmes peuvent survenir si votre projet d'automatisation utilise des sélecteurs contenant le titre de la fenêtre. Par exemple, le sélecteur suivant ne fonctionne plus si votre version Excel est la précédente : <wnd app='excel.exe' cls='XLMAIN' title='FileName.xlsx - Excel' /> <wnd cls='EXCEL7' title='FileName.xlsx' />. Pour éviter ce problème, nous vous recommandons d'utiliser un sélecteur de variable dynamique.
  • Some Excel versions, for example, Excel 2019, always open SharePoint documents in read-only mode. You can check if a remote document supports editing by opening it manually in Excel on your local machine.

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Uipath Logo
Confiance et sécurité
© 2005-2025 UiPath Tous droits réservés.