Activities
latest
false
Productivity Activities
Last updated Jul 9, 2024

Word Application Scope / Use Word File

UiPath.Word.Activities.WordApplicationScope

In the StudioX profile, this activity is named Use Word File. In the Studio profile, this activity is named Word Application Scope.

Description

Lets you select a Word document to use in the automation. After you add the activity and indicate the file, add the Word activities to perform on the file inside this activity. If the specified file does not exist, the file is created when the project is executed. When this activity ends, the document and the Word application are closed.

If the activity is added inside a Use Excel FileUse Outlook 365Use Gmail, or Use Desktop Outlook App activity, you can select data from that Excel file or email account when configuring the activities added inside Use Word File.

You can add UI Automation activities directly in the Use Word File activity to quickly automate the interface of Word. For this to work, you need to have the Word document open on your machine.

To learn how to use this activity:

Configuring the Activity

In the Body of the Activity
  • Word file - Click Browse docs image next to the field, and then browse to and select a Word document. Alternatively, you can provide the file path using one of the options in the Plus docs image menu on the right side of the field. For example, select a cell in the Project Notebook that contains a path to a Word document or select Ask when run to enter a path manually when the project is executed. You can also input the SharePoint URL of a word file.
  • Create if not exists - If selected, a new Word document is created if the file is not found at the specified path. If not selected, an error occurs if the file is not found at the specified path. This option is selected by default.
  • Save changes - If selected, the document is saved on each change caused by an activity. If not selected, the changes are saved only after all the activities added inside Use Word File are executed. This option is selected by default.
Properties Panel

Common

  • DisplayName - The name displayed for the activity in the Designer panel.

File

  • File path - See Word file in the body of the activity.

Misc

  • Private - If selected, the values of variables and arguments are no longer logged at Verbose level.

Options

  • Auto save - See Save changes in the body of the activity.
  • Create if not exists - See Create if not exists in the body of the activity.
  • ReadOnly - If selected, the Word document is opened in a read-only mode. This can be used if the document is locked for editing or to avoid making changes when only needing to read data.
  • Description
  • Configuring the Activity

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.