活动
最新
False
横幅背景图像
生产力活动
上次更新日期 2024年4月26日

替换演示文稿中的文本

UiPath.Presentation.Activities.FindAndReplaceTextInPresentation

描述

将演示文稿中的某个文本替换为另一个文本。 此活动必须添加到 使用 PowerPoint 演示文稿 活动中。

项目兼容性

Windows - 旧版 | Windows | 跨平台

跨平台配置

  • 演示文稿 - 要使用的 PowerPoint 文件的完整路径。如果要使用的 PowerPoint 文件位于项目文件夹中,则可使用其相对路径。仅支持字符串变量和字符串。
  • 查找内容 - 要替换的文本。仅支持字符串变量和字符串。
  • 替换为 - 要替换成的文本。仅支持字符串变量和字符串。
  • Match case - If enabled, replaces only the text that matches specific capitalization.
  • Whole words only - If enabled, replaces only entire words instead of parts of a longer word. This option is disabled in PowerPoint and in Studio when using non-alphanumeric characters.
  • Replace All - If enabled, replaces all occurrences of the searched text. If not selected, only the first occurrence is replaced.

属性

  • “替换 次数” - 已进行的替换次数。

Windows 配置

The body of the activity

  • Presentation - Set a PowerPoint file in which to search and replace the text.
  • 查找内容 - 要替换的文本。仅支持字符串变量和字符串。
  • 替换为 - 要替换成的文本。仅支持字符串变量和字符串。
  • 匹配大小写 ” - 如果选中,则仅替换与特定大写字母匹配的文本。
  • 替换整个单词 - 如果选中,则仅替换整个单词,而不是较长单词的部分内容。 使用非字母数字字符时,此选项在 PowerPoint 和 Studio 中处于禁用状态。
  • 全部替换 - 如果选中,则替换所有出现的搜索文本。 如果未选中,则仅替换第一个匹配项。
常见
  • “显示名称”- 设计器面板中活动的显示名称
输入
  • 请在活动正文中查看选项。
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • Number of replacements - Optionally, save the number of replacements made.

Windows - 旧版配置

常见
  • “显示名称”- 设计器面板中活动的显示名称
输入
  • Find what - Text to be replaced. Only String variables and strings are supported. Alternatively, in StudioX, click Plus on the right side of the field, and then select one of the options from the menu:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
    • “运行时询问”- 执行项目时提示输入名称。
    • “从剪贴板粘贴”- 将您以前复制的值粘贴到项目中的剪贴板中。
    • “文本”- 在文本生成器中输入文本。
    • “在高级编辑器中打开”- 输入 VB 表达式。
  • Presentation - Presentation in which to replace the text. In StudioX, click Plus on the right side of the field, and then select the presentation file in which to replace text. Alternatively, you enter a VB expression.
  • Replace with - The text to replace with. Only String variables and strings are supported. Alternatively, in StudioX, click Plus on the right side of the field, and then select one of the options from the menu:

    • 项目笔记本、父级 Excel 文件或电子邮件帐户中的数据。例如,在 Excel 文件中选择一个单元格以使用该单元格中的值。
    • “运行时询问”- 执行项目时提示输入名称。
    • “从剪贴板粘贴”- 将您以前复制的值粘贴到项目中的剪贴板中。
    • “文本”- 在文本生成器中输入文本。
    • “在高级编辑器中打开”- 输入 VB 表达式。
  • 区分大小写- 指示是否替换仅匹配特定大写字母的文本。
  • 仅整个单词 - 如果选中,则表示仅应替换整个单词。 如果未选中,则较大单词中的文本也会被替换。 默认情况下未选中此选项。
  • 全部替换 - 如果选中,则表示应替换所有出现的文本。 如果未选中,则仅替换第一次出现的文本。 默认情况下选中此选项。
其他
  • “私有”- 选中后将不再以“Verbose”级别记录变量和参数的值。
输出
  • Number of replacements - Optionally, save the number of replacements made. In StudioX, click Plus on the right side of the field, and then select one of the options from the menu:

    • Excel - 将值保存到 Excel 文件或项目笔记本中的单元格。
    • 复制到剪贴板- 将返回的路径保存到剪贴板。
    • 已保存以备后用- 提示您提供名称以保存值。之后可以更改名称。
    • “在高级编辑器中打开”- 输入 VB 表达式。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.