Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding http:// in front of a column of IP addresses in excel

Status
Not open for further replies.

Pandab2002

IS-IT--Management
Apr 16, 2003
47
US
I have a column of 233 IP addresses. I'd like to be able to just click on any of the addresses to reach the web application associated with that IP address. I have tried using concatenate the IP address with a column that contains http:// but it does not create a link. If I manually type excel automatically sets it as a link. I'm sure the answer is staring me in the face, but I can't figure it out.
 
Hi
How about somethng like this

Code:
Dim c As Range
For Each c In Range("A1:A233")
    ActiveSheet.Hyperlinks.Add Anchor:=c, Address:="[URL unfurl="true"]http://"[/URL] & c
Next

;-)
If a man says something and there are no women there to hear him, is he still wrong? [ponder]
How do I get the best answers?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top