Doc hyperlink modification

Hello there,
I need to change the hyperlink behind links in a word document dynamically.
(I only need to change the hyperlink, if the link name itself differs from the hyperlink behind it.
So if the link is and its hyperlink is

How can this be done? Click text doesn’t seem to work in Microsoft word environment at all… same with click OCR text. Word activites can’t help me out on this.
Isn’t UiPath fully support microsoft office products? :slight_smile: :slight_smile:

Thank you all!

? Anybody? UiPath masters help me please. :slight_smile:

Try this code. I found it in my archive, probably I might have shared in the past (couldn’t find this thread in forum).I did not test it now and I’m not sure if it will work as expected . The is not exactly what you need, but it will find a word in Word document and adds hyperlink to that word. You can keep this in a for each loop if you have bunch of words in an Array or Dictionary.

ui_word_hyperlinks.xaml (9.2 KB)

1 Like

Thanks for the reply!
Unfortunately it’s not working due to "errorBC31539: Cannot find the interop type that matches the embedded type’Microsoft.Office.Interop.Word.Application’.’ :confused:

Hi @marton.torok

Have you found a solution to your problem? It seems to be working on the latest version :slight_smile:

Hi @loginerror @marton.torok,

Please add a new variable to the Workflow of the type (Microsoft.Office.Interop.Word).

Karthikeyan R