Replace image in word

hello dears,
i have one image in my word in body with no alt text, i just need to replace it with other one to be in same position and same size, noting my 2 images have the same size.
i can build it as ui or using specific activities its not matter just i want the second image to be the same position

Hi @Yazan_Otaibi

Could you please elaborate on what exactly you are seeking? It would also be helpful if you could include some related pictures to better understand your query.

@Yazan_Otaibi

There is no direct activity as such…you can go with invoke code

A sample is here

Cheers

1 Like

i have this word with this image in body not in header,

i need to replace it with another image to be in same position

@Oozair_Khan

can you help in use this code ?
@Anil_G

@Yazan_Otaibi

you can use it in invoke code…please try the same and if you see any issues then we are here to help

cheers

@Yazan_Otaibi
You can replace the existing image in Microsoft Word with another image while maintaining the same position. Here’s how you can do it manually

Steps to Replace the Image in Word

Click on the Existing Image (the “69% Overall Score” image in your case).
Press Delete to remove it.
Insert the New Image:
Go to Insert → Pictures → Select the new image.
Adjust Position:
Click on the inserted image.
Go to Picture Format → Wrap Text → Choose “In Front of Text” or “Tight” (if needed).
Drag it to the previous image’s position.

Let me know if this worked for You.
Thanks

how can the robot drag it ?! @Oozair_Khan

@Anil_G

Have you tried to add a End Sub at the end of your invoke code as suggested by the error message?