Convert urls to links

G

Guest

Hello,
I have an Excel document with a column of urls that I'd like to convert to
links. There is nothing in this column except the urls. Is there a way to
convert them en mass?

Thanks,
Ellen
 
P

PCLIVE

You could use some VBA code.
Press Alt+F11 to bring up the VB editor. Next, right-click "ThisWorkbook"
and goto "Insert" and then select "Module".
Paste the following code:

For Each cell In Range("A1:A" & Range("A65536").End(xlUp).Row)
cell.Hyperlinks.Add Anchor:=cell, Address:= _
cell.Value, TextToDisplay:=cell.Value
Next cell




This code assumes that your URLs are in column A.
HTH,
Paul
 
G

Guest

Thanks for your help, Paul. After doing a little checking out, I preceded
your code with "Sub url()" and ended it with "End sub". The code worked
beautifully!!
Ellen
 

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

Find and replace "~" 6
Convert urls to links 7
Hyperlinks 3
Convert list of URLs to Hyperlinks 3
Make URLs 4
converting text into hyperlinks 2
Excel Hyperlink in Excel to Devonthink pro File 0
VBA to total record count 3

Top