Convert 3,000 url's to enabled hyperlinked automatically?

J

Judy1997

I have a column of 3,000 urls in format http://www.... None of these are
actually enabled . I need to be able to click on them and go right to the
website. I also need the actual website address to still show, AND be
clickable. Is there a way to do this without manually going in to the
"insert hyperlink" box and doing all 3000 one at a time?! I have excel 2003.
 
L

Luke M

Assuming your url's are in column A:
In a seperate column, use this formula
=HYPERLINK(A2,A2)
Copy down as needed.

For viewability, I'd then hide the column contain the dead url's.
 
L

Luke M

Assuming your urls are in column A:

In B2, input
=HYPERLINK(A2,A2)

Copy down. For viewability, I'd hide the A column so that only the 'live'
urls are visible.
 
G

Gord Dibben

Select the 3000 cells then run this macro.

Sub MakeHyperlinks()
'David McRitchie
Dim Cell As Range
For Each Cell In Intersect(Selection, _
Selection.SpecialCells(xlConstants, xlTextValues))
With ActiveSheet
.Hyperlinks.Add anchor:=Cell, _
Address:=Cell.Value, _
ScreenTip:=Cell.Value, _
TextToDisplay:=Cell.Value
End With
Next Cell
End Sub


Gord Dibben MS Excel MVP
 
J

Judy1997

Luke -- I did this, and it works, but now I can't delete column A, or I get
the !REF error, of course, because A is used in the formula. What can I do
about that? (I can only have one column of the url's, since we have an upload
script to upload the information from the spreadsheet.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top