cancel
Showing results for 
Search instead for 
Did you mean: 

Extract hyperlink from excel cell

RohiniPatil
Level 3

Hi,

I have excel file which contains some hyperlinks. I want read that hyperlink. how can i get it?



------------------------------
Rohini Patil
------------------------------
5 REPLIES 5

VedSengupta
Level 6
Hello Rohini,
If the cell where the hyperlink is embedded is static you can ready that cell value as text and store in data item and try using that as an input to launch your hyperlink.

------------------------------
------------------------------
Best Regards,
Ved Sengupta
RPA Developer
Deloitte India (Offices of the US)
Bangalore | INDIA
*If you find this post helpful mark it as best answer*
------------------------------
------------------------------
------------------------------ Best Regards, Ved Sengupta RPA Developer Deloitte India (Offices of the US) Bangalore | INDIA *If you find this post helpful mark it as best answer* ------------------------------

No, i try that but i was getting name of that hyperlink e.g if its display ABC as link then output was ABC not the hyperlink. 

Thank you. we have resolved it by writing code stage to get URL



------------------------------
Rohini Patil
------------------------------

Hi @RohiniPatil1,

Can you please share the code you had to write to get the links? 
Thank You.



------------------------------
Moses Kobe
Developer
Discovery Limited
Johannesburg
0824899205
------------------------------

Hi @Moses Kobe - I just wrote a custom code you can add add as action in one of your excel extended objects, you can check params for input and output variables, add any exception handling if you want to- 

23794.png

Dim ws as Object = GetWorksheet( handle, workbookname, worksheetname)
 
Dim xlRange As Object = ws.Range(Range_Cell)
 
Dim dt As New DataTable()
dt.Columns.Add("Hyperlinks")
 
For Each cell As Object In xlRange
If cell.Hyperlinks.Count > 0 Then
dt.Rows.Add(cell.Hyperlinks(1).Address)
    End If
Next cell
 
Output_Collection = dt

Input Excel-23795.png

Output - 23796.png

let me know if you find any difficulties with this.



------------------------------
Regards,

Mukesh K
------------------------------

Regards,

Mukesh Kumar

Thank you, I will look into it.



------------------------------
Moses Kobe
Developer
Discovery Limited
Johannesburg
0824899205
------------------------------