Assign a hyper link to variable

While writing a text in a document through automation i need to assign a hyperlink to particular word,can someone suggest how to assign a hyper link to a variable.

Thanks in advance

Hi @prathap_reddy1
check this one