- 概述
- Excel
- 发行说明
- 关于 Excel 活动包
- 项目兼容性
- 受支持的字符编码
- 项目设置
- 添加或更新 Excel 敏感性标签
- 附加范围
- 自动填充
- 自动调整范围
- 更改透视表数据源
- 清除工作表/范围/表格
- 复制/粘贴范围
- 创建透视表
- 删除列
- 删除行
- 删除工作表
- 复制工作表
- 导出为 CSV
- 填充范围
- 筛选
- 筛选条件透视表
- 查找数据的首行/末行
- 查找/替换值
- 对每个 Excel 行
- 对每个 Excel 工作表
- 格式化为表格
- 设置单元格的格式
- 获取单元格颜色
- 获取 Excel 图表
- 获取 Excel 敏感性标签
- 获取选定范围
- 插入列
- 插入图表
- 插入行
- 插入工作表
- 调用 VBA
- 查找
- “匹配”功能
- 保护工作表
- 读取单元格公式
- 读取单元格值
- 读取范围
- 刷新 Excel 数据连接
- 刷新透视表
- 删除重复项
- 重命名工作表
- 运行电子表格宏
- 保存 Excel 文件
- 将 Excel 文件另存为
- 将 Excel 文件保存为 PDF 格式
- 选择范围
- 范围排序
- 分列
- 取消保护工作表
- 更新 Excel 图表
- 使用 Excel 文件
- VLookup
- 写入单元格
- 写入 CSV
- 将数据表写入 Excel
- Google Workspace
- 发行说明
- 关于“Google Workspace”活动包
- 项目兼容性
- 项目设置
- 添加参加者
- 创建活动
- 删除活动
- 修改活动
- 搜索活动
- 使用 Google 云端硬盘
- 共享文件
- 删除文件权限
- 获取文件权限
- 更新文件权限
- 复制文件
- 创建文件夹
- 删除文件
- 下载文件
- 查找文件和文件夹
- 获取文件信息
- 移动文件
- 上传文件
- 创建文档
- 创建新电子表格
- 获取邮件消息
- 发送邮件消息
- 更改标签
- 使用 Google 电子表格
- 添加/删除列
- 添加删除行
- 自动填充范围
- 添加新工作表
- 附加行
- 批量电子表格更新
- 复制工作表
- 复制粘贴范围
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 清除范围
- 下载电子表格
- 使用 Google 文档
- 批量文档更新
- 获取文档
- 获取文本索引
- 插入文本
- 替换文本
- 读取所有文本
- 创建脚本项目
- 获取项目内容
- 上传脚本文件
- 创建部署
- 运行脚本
- 邮件
- Microsoft 365
- 发行说明
- 关于 Microsoft Office 365 活动包
- 项目兼容性
- 项目设置
- Microsoft Office 365 作用域
- 添加工作表
- 附加范围
- 清除范围
- 复制范围
- 复制工作表
- 创建工作簿
- 删除范围
- 删除工作表
- 获取单元格颜色
- 获取工作表
- 读取单元格
- 读取列
- 读取范围
- 读取行
- 重命名工作表
- 写入单元格
- 写入范围
- 设置范围颜色
- 创建表格
- 获取表格范围
- 插入列
- 删除列
- 插入行
- 删除行
- VLookup 范围
- 使用 OneDrive 和 SharePoint
- 复制文件/文件夹
- 创建文件夹
- 删除文件/文件夹
- 下载文件
- 将文件导出为 PDF
- 查找文件和文件夹
- 获取文件/文件夹
- 移动文件/文件夹
- 上传文件
- 共享文件/文件夹
- 遍历每个文件/文件夹
- 转发邮件
- 查找会议时间
- 获取邮件
- 移动邮件
- 发送邮件
- 回复邮件
- 删除邮件
- 设置邮件类别
- 添加附件
- 添加参加者
- 添加地点
- 创建活动
- 删除活动
- 获取日历
- 修改活动
- RSVP
- 搜索活动
- 创建组
- 删除组
- 获取组
- 列出组
- 创建存储桶
- 删除存储桶
- 列出存储桶
- 列出存储桶任务
- 创建计划
- 获取计划
- 列出计划
- 创建任务
- 删除任务
- 获取任务
- 列出任务
- 更新任务
- 遍历列表
- 获取列表信息
- 遍历列表项目
- 删除列表项目
- 添加列表项目
- 更新列表项目
- 获取列表项目
- 身份验证故障排除
- AADSTS50011:重定向 URI 不匹配
- AADTS50076:使用多重身份验证
- AADSTS50079:用户需要使用多重身份验证
- AADSTS500113:没有为应用程序注册回复地址
- AADSTS900971:未提供回复地址
- AADSTS65001:用户或管理员未同意使用该应用程序
- AADSTS65004:用户拒绝同意访问该应用程序
- AADSTS7000218:请求正文必须包含以下参数:client_assertion 或 client_secret
- AADSTS700025:客户端是公开的,因此不应提供“client_assertion”和“client_secret”
- AADSTS70002:InvalidClient - 验证凭据时出错
- AADSTS7000215:提供的客户端密码无效
- AADSTS50055:密码已过期
- AADSTS700082:由于不活动,刷新令牌已过期
- AADSTS50194:应用程序未配置为多租户应用程序
- AADSTS53003:条件访问策略已阻止访问
- 邮件故障排除
- 日历故障排除
- 文件故障排除
- 表格故障排除
- 演示文稿
- Word

生产力活动
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.
- 2013
- 2016 年
- 2019 年
- 2021 年
- 2024
- Office 365
- Office 2024
新式 下分组的活动是最初为 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.
教程
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:
- 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.
- 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.
- 使用“ 自定义输入 ” 选项可以根据表格、图表或工作表名称手动指定输入,或者输入对单元格或范围的引用。
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.
| 活动类型 | 项目兼容性 | Excel installation required | 性能 | 用户体验 | Best used when |
|---|---|---|---|---|---|
| Use Excel File (Modern) | Windows, Cross-platform | 是 | High (memory optimized) | Visual and guided (Plus menu, Indicate in Excel) | Building modern workflows, working across profiles. |
| Excel Application Scope (Classic) | Windows, Windows-legacy | 是 | Best for large or complex user interface tasks. | Manual setup required | Automating legacy Excel user interface workflows. Classic Excel activities are not suitable for new automations. It is recommended to use modern activities instead. |
| Workbook 活动 | Windows, Cross-platform, Windows-legacy | 否 | Good for lightweight headless operations. | Simple expression-based | Excel is not installed, or the user interface is not required. |
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.
- 提供每个 Workbook 活动中的文件路径。使用此选项时,系统会在 Runtime 为处理该文件的每个活动将其加载到内存中。此选项最适合较小的文件。
- 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.
传统应用程序集成活动 需要在运行它们的计算机上安装 Excel 应用程序。 对于跨越大量行和列的大型复杂电子表格,我们建议使用 应用程序集成 活动,因为这些活动可提供最佳性能和一致性。
除 CSV 活动外,所有应用程序集成活动必须包含在 Excel 应用程序作用域中 才能正常工作。 从 Excel 活动包 2.10.4 版开始,这些活动也可以包含在“ 使用 Excel 文件 ”活动中。
.csv 文件,而其余所有活动则适用于 .xlsx 和 .xls 文件。仅适用于 Excel 应用程序作用域的活动同样支持使用 .xlsm 文件。
.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.
如果自动化项目使用包含窗口标题的选取器,则可能会导致一些问题。例如,如果您的 Excel 版本为前述版本,则以下选取器不再可用:<wnd app='excel.exe' cls='XLMAIN' title='FileName.xlsx - Excel' /> <wnd cls='EXCEL7' title='FileName.xlsx' />。为防止出现此问题,建议您使用动态变量选取器。 - 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.