hyperlink

Sanoza

New Member
Hi All,
As part of a process, I have saved a word document with url (as a text) and screenshot. To store url, I have used type text feature in ms word vbo.
How can I get this url in hyperlink (clickable form), is there any features or code stage to get it as hyperlink.
 

VJR

Well-Known Member
Hi Sanoza,

Create a duplicate copy of the existing 'Type Text' action and add the below code along with the necessary changes you want to make like adding the TextToDisplay as a parameter.

Since I have used the same copy of the VBO, you can swap the names -for eg; I have used the 'text' parameter for the Address instead it should have been used for TextToDisplay and another parameter called 'Link' for the actual hyperlink.

Code:
Dim d As Object = GetInstance(handle)
Dim r as Object  'Range

r = d.Application.Selection.Range
r.Hyperlinks.Add(Anchor:=r, Address:=text,TextToDisplay:="Google Home Page")
'can pass the value of TextToDisplay as a parameter

d = Nothing
r = Nothing

Process diagram and the output:
View attachment 1540806226995.png

View attachment 1540806202796.png
 
Last edited:

VJR

Well-Known Member
How to create a duplicate copy of the existing 'Type Text' action
Hi rashmi123,

You do this by opening the Ms Word VBO from the Object Studio -> then open the 'Type Text' tab -> right click on the tab and you will find a duplicate option -> give the name for the new action.
 
Hi,

How can I make text as Hyperlink in Calculation Stage. I want to convert text into Hyperlink.

Example : To report issues and all other requests: Global Service Desk

Example : Global Service Desk URl : https://globalservicedesk.com/

In the above example I need 'Global Service Desk' to be changed to hyperlink
 

Attachments

  • Text Hyperlink.png
    1.5 KB · Views: 10
Last edited:
Top