Insert Object into Word via UiPath

Hi everyone,

My work requires me to attach files into a word document directly as an icon. On Microsoft Word, this would refer to the insert object function and then display the file as an icon. Would anyone have any idea if there exists any function to execute this task on UiPath Studio?

Currently, I use the selector function to simulate the action but it is not useful as every worker saves it in a different folder, hence it may not work.

Thank you and have a great weekend everyone.

Hi,

I think there is no such an activity but you can use an Invoke code activity and develop a small piece of code in order to create and customize that.

Use the Microsoft.Office.Interop.Word package and YourWordDocument.InlineShapes.AddOLEObject method to insert it.

I hope this help

1 Like