making normal text to hyperlink.

  • Thread starter Thread starter Ronald
  • Start date Start date
R

Ronald

Hi all,

I have the following issue,

I load a bunch of web adresses from a text file into excel.
Example:

www.microsoft.com
www.playboy.com
etc.
etc.


When I do this the web adresse are displayed as text.
How do I get them to perform/display as a hyperlink so clickin on the
text will bring me directly to the site?
The data to load is different every time.

Looking forward to see any options to my problem.

Ronald
 
select them then run this
Sub AddHperLinks()
Dim cl As Range

For Each cl In Selection.Cells
ActiveSheet.HYperLinks.Add Anchor:=cl, Address:=CStr("http://" & cl.Value)
Next cl
End Sub

cheers
Simon
 

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

Similar Threads

display text from a link 1
hyperlinks 9
Copy hyperlinks 6
Automatically Turn on Normal text to hyperlink 1
Hyperlink Text 4
hyperlink button on a userform 1
Save as Text 1
hyperlink copy paste 3

Back
Top