Word Automation
Word Automation helps you to input, read, and extract data from Microsoft Word documents. You can use the available activities to automate word processing and document creation task, such as insert content copied from a website in a Word document, remove or replace specific content, or convert a Word document to PDF. These activities also help you to integrate Microsoft Word with other applications and quickly perform time-consuming or repetitive word processing tasks.
Before using a bot with Word Automation activity, it is recommended that you should customize the advanced Word options to open a blank document by default.
- Launch Microsoft Word and then open the advanced Word Options dialog.
- In the General tab, Start up options section, clear the Show the Start screen when this application starts checkbox.
Word Automation Actions
You can use the following activities to design an RPA bot to perform a task in a Microsoft Word document:
Use this action to add a picture to a specified word document. The picture is added in-line with the text and after the existing text in the word document.
Properties
- Name: Enter the display name of the action.
- Path of the Picture: Enter the name and path of the picture, you want to add in a Word document.
Use this action to write text in an existing Word document.
Properties
- Name: Enter the display name of the action.
- Append at: Select one of the following:
- First: Beginning of the Word document.
- Last: End of the Word document.
- Override: Replace the existing text with the specified text.
- Enter text to send: Enter the text to be written.
Export to PDF lets you convert your Word document to PDF format.
Properties
- Name: Enter the display name of the action.
- Enter Filename: Specify the name of the PDF file you want to create.
You can use this action to find all the instances of the specified text in a Word document and replace it with new text.
Properties
- Name: Enter the display name of the action.
- Enter Find Text: Enter the text you want to locate and replace.
- Enter Replace Text: Enter the new text to be written.
- Choose Action Type: Select one of the following:
- Replace: Replace only the first instance of the specified text.
- Replace All: Update all the instances of the specified text at once.
- Find Next: Replace the instances of the specified text one by one. It works just the same way Find Next button works in Find dialog.
Open a new Word document.
Properties
- Name: Enter the display name of the action.