Help Centre › Building Processes
This article describes the RPA Word functionality to replace an image.
For a full list of available functions, please read WORD functions.
Description
The WORD Replace image function allows you to replace an existing image in a Word document by alt-text or index.
Setting it up
To use the WORD Replace image function, follow these instructions:
{{popups:rpas/add:action=word-replace-picture}}
Once on a process map:
- Navigate to the process where you would like to add the WORD Replace image function
- Click on the green button's drop-down (right side of the green button labelled "Process")
- On the menu that appears, click on the "+ Activity" item
- From here you can select the WORD Replace image option
- Click "Add" once you are done
Input parameters
| Parameter | Required | Type | Default | Description |
|---|---|---|---|---|
| New image path | Yes | Text | - | File path to the new image |
| Alt text | No | Text | - | Alt-text of the image to replace |
| Image index | No | Number | - | Index of the image to replace |
| Width | No | Number | - | New width in inches |
Output variables
This action does not produce output variables.
Errors
| Error | Description |
|---|---|
| Word not open | Microsoft Word is not running |
| Image not found | The specified image could not be found |
Tips
- Provide either alt text or image index to identify which image to replace
- Supports common image formats (PNG, JPG, BMP, etc.)