Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
sfinx59
 
Posts: n/a
Default Display link_location instead of friendly name

I have 1000, or more hyperlinks of which the link_location only divers
an id-number somthing like
"http://someonessite.com/docs.php?action=info_id=234" The friendly
names divers to a great extent.

When I copy the links to an excel wks the friendly names show. However
I want to select and sort on the link_location id's to see if
something is missing.

Is there a way to display the link_location?

solutions I tried:
- changing format, no result
- right-clic link, Hyperlink Copy Hyperlink move cursor to empty
cell and paste link. This works, however a lot of clics
- tried to create a macro with the same moves, but than excel copies
the friendly name again.

Anybody has a solution

Thanks

Sfinx59
  #2   Report Post  
Gary Brown
 
Posts: n/a
Default

The macro below will give you a listing of the friendly name and the link.
HTH,
Gary Brown

'/=============================/
Sub HyperlinkList_Test()
Dim h As Hyperlink
Dim iRow As Long
Dim wksht As Worksheet

On Error Resume Next

Worksheets.Add.Move _
After:=Worksheets(Worksheets.Count)

ActiveSheet.Range("A1").Value = "Worksheet"
ActiveSheet.Range("B1").Value = "Address"
ActiveSheet.Range("C1").Value = "SubAddress"
ActiveSheet.Range("D1").Value = "Name"

Range("A1").Select

For Each wksht In Worksheets
If wksht.Hyperlinks.Count < 0 Then
For Each h In wksht.Hyperlinks
iRow = iRow + 1
With Selection
.Offset(iRow, 0) = wksht.Name
.Offset(iRow, 1) = h.Address
.Offset(iRow, 2) = h.SubAddress
.Offset(iRow, 3) = h.Name
End With
Next h
End If
Next wksht

Cells.EntireColumn.AutoFit
Range("A2").Select
ActiveWindow.FreezePanes = True

End Sub
'/=============================/




"sfinx59" wrote:

I have 1000, or more hyperlinks of which the link_location only divers
an id-number somthing like
"http://someonessite.com/docs.php?action=info_id=234" The friendly
names divers to a great extent.

When I copy the links to an excel wks the friendly names show. However
I want to select and sort on the link_location id's to see if
something is missing.

Is there a way to display the link_location?

solutions I tried:
- changing format, no result
- right-clic link, Hyperlink Copy Hyperlink move cursor to empty
cell and paste link. This works, however a lot of clics
- tried to create a macro with the same moves, but than excel copies
the friendly name again.

Anybody has a solution

Thanks

Sfinx59

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
Axis display as category doco Charts and Charting in Excel 4 December 12th 04 04:45 PM
Conditional display of a .jpeg file? sbhogle Excel Discussion (Misc queries) 2 November 30th 04 05:57 AM
Data Filter - Not all rows in spreadsheet will display in Autofilt Excel Help Excel Worksheet Functions 1 November 17th 04 05:40 PM
how to display heading of column corresponding to the cell angelrain Excel Worksheet Functions 2 November 2nd 04 04:57 PM
Combine & Display “Fixed” & “Automatically Updated” Date Parts texcel Excel Worksheet Functions 1 November 1st 04 05:38 PM


All times are GMT +1. The time now is 09:26 PM.

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"