#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 41
Default Hyperlinks

Hello, i want to know if its possible to display the URL's for all the
Hyperlinks.

For example i have a column with all hyperlinks, could i make it display
each URL on the next column?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,069
Default Hyperlinks

Try the following user-defined function (I'm using Excel 2003). Paste this
code into a VBA module in your workbook:

Public Function ShowURL(Rng As Range) As String
On Error GoTo SURLerr1
If Rng.Count 1 Then
ShowURL$ = vbNullString
Exit Function
End If
ShowURL$ = Rng.Hyperlinks(1).Address
Exit Function
SURLerr1:
ShowURL$ = vbNullString
End Function


If a cell with a hyperlink is in A5, in another cell enter
=ShowURL(A5)

Hope this helps,

Hutch

"Gmata" wrote:

Hello, i want to know if its possible to display the URL's for all the
Hyperlinks.

For example i have a column with all hyperlinks, could i make it display
each URL on the next column?

Thanks

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
Hyperlinks: Hyperlinks change on copy/paste? Rick S. Excel Worksheet Functions 0 November 13th 07 08:19 PM
Update 2000 Excel hyperlinks to 2003 hyperlinks lonv155 Excel Worksheet Functions 4 October 25th 07 05:51 AM
How toi turn-off hyperlinks [excel]? Email hyperlinks pop up ! jacob735 Excel Discussion (Misc queries) 1 June 22nd 07 12:57 AM
hyperlinks Debtazmel Excel Discussion (Misc queries) 1 November 1st 06 07:20 PM
Excel Hyperlinks- cell content v. hyperlinks herpetafauna Excel Discussion (Misc queries) 2 May 23rd 06 04:39 AM


All times are GMT +1. The time now is 08:49 AM.

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

About Us

"It's about Microsoft Excel"