Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I would like to extract the hyperlink from a cell.
I found a nice example on http://www.ozgrid.com/VBA/HyperlinkAddress.htm which defined the function GetAddress as: Function GetAddress(HyperlinkCell As Range) GetAddress = Replace HyperlinkCell.Hyperlinks(1).Address, "mailto:", "") End Function In cell A2, you can enter the function =GetAddress(A1) to extract the hyperlink from cell A1.In other cells where I do not have a hyperlink the function returns #VALUE!. How do I change the function to return "" instead of #VALUE!? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Trap #Div/0 in conditional formatting | Excel Discussion (Misc queries) | |||
Trap Right CLick Insert | Excel Programming | |||
error trap | Excel Programming | |||
how to trap a event coming from a dll | Excel Programming |