ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   getting behind the Hyperlink (https://www.excelbanter.com/excel-programming/403058-getting-behind-hyperlink.html)

Darin Kramer

getting behind the Hyperlink
 


Hi there,

In cell A1 if have "John Smith"

This is a hyperlink with the mail to function so that when you click on
cell A1 it generates an email with John Smiths Email address eg


Problem - I want to see
in B1 (ie splitting the hyperlink
back to its original form) What formulae can I put in B1 to see the
actual mail address in A1?

Thanks guys!!!

Regards

D

*** Sent via Developersdex
http://www.developersdex.com ***

Gary''s Student

getting behind the Hyperlink
 
try this small UDF:

Function hyp2(r As Range) As String
hyp2 = Split(r.Hyperlinks(1).Address, ":")(1)
End Function
--
Gary''s Student - gsnu2007b


"Darin Kramer" wrote:



Hi there,

In cell A1 if have "John Smith"

This is a hyperlink with the mail to function so that when you click on
cell A1 it generates an email with John Smiths Email address eg


Problem - I want to see
in B1 (ie splitting the hyperlink
back to its original form) What formulae can I put in B1 to see the
actual mail address in A1?

Thanks guys!!!

Regards

D

*** Sent via Developersdex
http://www.developersdex.com ***


Darin Kramer

getting behind the Hyperlink
 


Awesome - works perfectly!!!

*** Sent via Developersdex http://www.developersdex.com ***


All times are GMT +1. The time now is 03:43 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com