Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 390
Default hyperlink display text

how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default hyperlink display text

The following UDF should give you the address:

Function hyp(r As Range) As String
hyp = ""
If r.Hyperlinks.Count 0 Then
hyp = r.Hyperlinks(1).Address
Exit Function
End If
If r.HasFormula Then
rf = r.Formula
dq = Chr(34)
If InStr(rf, dq) = 0 Then
Else
hyp = Split(r.Formula, dq)(1)
End If
End If
End Function
--
Gary''s Student
gsnu200707


"max" wrote:

how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default hyperlink display text

Thanks Gary- It took some looking on my part to figure out what a UDF is, but
I got it done, and you saved me hours of work.

"Gary''s Student" wrote:

The following UDF should give you the address:

Function hyp(r As Range) As String
hyp = ""
If r.Hyperlinks.Count 0 Then
hyp = r.Hyperlinks(1).Address
Exit Function
End If
If r.HasFormula Then
rf = r.Formula
dq = Chr(34)
If InStr(rf, dq) = 0 Then
Else
hyp = Split(r.Formula, dq)(1)
End If
End If
End Function
--
Gary''s Student
gsnu200707


"max" wrote:

how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default hyperlink display text

You are very welcome !
--
Gary''s Student
gsnu200709


"sodea" wrote:

Thanks Gary- It took some looking on my part to figure out what a UDF is, but
I got it done, and you saved me hours of work.

"Gary''s Student" wrote:

The following UDF should give you the address:

Function hyp(r As Range) As String
hyp = ""
If r.Hyperlinks.Count 0 Then
hyp = r.Hyperlinks(1).Address
Exit Function
End If
If r.HasFormula Then
rf = r.Formula
dq = Chr(34)
If InStr(rf, dq) = 0 Then
Else
hyp = Split(r.Formula, dq)(1)
End If
End If
End Function
--
Gary''s Student
gsnu200707


"max" wrote:

how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default hyperlink display text

Can you see the complete email address when you use Insert|hyperlink?

max wrote:

how do i view the actual email address for the hyperlink text? the workbook
i'm viewing has 4 characters for the hyperlink not the email address.


--

Dave Peterson


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hyperlink display QTGlennM Links and Linking in Excel 3 July 30th 06 11:49 PM
Hyperlink display joel anthony Excel Discussion (Misc queries) 2 April 24th 06 06:56 PM
How do I display hyperlink as embedded jump text vice friendly tex Brook Excel Discussion (Misc queries) 2 March 31st 06 05:09 AM
Hyperlink Display problem Panama Red Excel Worksheet Functions 2 August 9th 05 03:14 PM
Hyperlink display text maximum in Excel 2003 CTC Excel Discussion (Misc queries) 2 May 25th 05 07:17 PM


All times are GMT +1. The time now is 05:12 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"