- 概述
- Apple Mail
- AppleNumbers
- Apple 脚本编写
- 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

生产力活动
管理 Word 文档
下面的示例说明了如何通过读取文件中的文本、在消息框中显示文本、附加文本以及无需打开 Microsoft Word 即可替换文本来自定义 Word 文档。该示例使用“读取文本” 、 “附加文本”或“替换文档中的文本”等活动。您可以在“UiPath.Word.Activities”包中找到这些活动。
此自动化流程的构建方法如下:
-
打开 Studio ,创建一个新“流程”。
-
Download and extract the archive with the project in this example and copy the file document.docx to your project folder.
-
将“序列”容器拖动至“工作流设计器”。
-
创建以下变量:
变量名称 变量类型 默认值 text字符串 不适用
-
-
Drag a Message Box activity inside the Sequence container.
- 在“文本”字段中添加表达式
"This is the original document."。
- 在“文本”字段中添加表达式
-
Drag a Read Text activity below the Message Box activity.
- Add the expression
"document.docx"in the File path field. - 在“文本”字段中添加“
text”变量。
- Add the expression
-
Drag a Message Box below the Read Text activity.
- In the Properties panel, select the Ok option from the Buttons drop-down list.
- 在“文本”字段中添加“
text”变量。 - Select the check box for the TopMost option. This always brings the message box to the foreground.
-
Drag a Message Box below the previous Message Box activity.
- In the Properties panel, select the Ok option from the Buttons drop-down list.
- 在“文本”字段中添加表达式
"A new paragraph is added"。 - Select the check box for the TopMost option. This always brings the message box to the foreground.
-
Drag an Append Text activity below the Message Box activity.
- Add the expression
"document.docx"in the File path field. - Add the following expression in the Text field:
"Nulla eu arcu a urna ultrices scelerisque nec in lectus. Suspendisse iaculis cursus turpis. Sed sed nibh in augue molestie egestas sit amet ac justo. Suspendisse facilisis, mi scelerisque mattis elementum, leo nisi euismod turpis, sed consequat nibh nulla non ipsum. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean mauris risus, aliquam vel tristique blandit, consectetur ac nunc. Phasellus convallis dolor ligula, non auctor nulla lobortis sit amet. Nulla eu lectus fermentum, porttitor metus in, consectetur ex. Vivamus gravida justo et auctor fermentum. Cras nisl urna, blandit et elementum sit amet, sodales ut tellus. In sit amet semper lectus. Donec ac ipsum vel libero mattis porta vitae id velit. Nullam facilisis porttitor elementum. Ut congue tristique nisi, ornare porta enim mattis eu. Donec in lacus risus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos.". - Select the check box for the New line option.
- Add the expression
-
Drag a Read Text activity below the Append Text activity.
- Add the expression
"document.docx"in the File path field. - 在“文本”字段中添加“
text”变量。
- Add the expression
-
Drag a Message Box below the Read Text activity.
- In the Properties panel, select the Ok option from the Buttons drop-down list.
- 在“文本”字段中添加“
text”值。 - Select the check box for the TopMost option. This always brings the message box to the foreground.
-
Drag a Message Box below the previous Message Box activity.
- In the Properties panel, select the Ok option from the Buttons drop-down list.
- 在“文本”字段中添加“
"Replace all the occurrences of the word "lorem" with "REPLACED""”值。 - Select the check box for the TopMost option. This always brings the message box to the foreground.
-
Drag a Replace Text activity below the Message Box activity.
- Add the expression
"document.docx"in the File path field. - Add the value
"REPLACED"in the Replace field. - Add the value
"lorem"in the Search field.
- Add the expression
-
Drag a Read Text activity below the Replace Text activity.
- Add the expression
"document.docx"in the File path field. - 在“文本”字段中添加“
text”变量。
- Add the expression
-
Drag a Message Box activity below the Read Text activity.
- In the Properties panel, select the Ok option from the Buttons drop-down list.
- 在“文本”字段中添加“
text”值。 - Select the check box for the TopMost option. This always brings the message box to the foreground.
-
Drag a Message Box activity below the previous Message Box activity.
-
In the Properties panel, select the Ok option from the Buttons drop-down list.
-
在“文本”字段中添加“
"This activity doesn't need to open Word to interact with it. Thank you and goodbye!"”值。 -
Select the check box for the TopMost option. This always brings the message box to the foreground.
-
您的工作流应如下所示:

-
-
运行流程。 多个消息框显示文档的原始文本、包含已添加段落的文本以及包含已替换单词的文本。