WORD Replace image function

The WORD Replace image function in RPA.

Help CentreBuilding 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:

  1. Navigate to the process where you would like to add the WORD Replace image function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the WORD Replace image option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
New image pathYesText-File path to the new image
Alt textNoText-Alt-text of the image to replace
Image indexNoNumber-Index of the image to replace
WidthNoNumber-New width in inches

Output variables

This action does not produce output variables.


Errors

ErrorDescription
Word not openMicrosoft Word is not running
Image not foundThe 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.)

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.