John Caines
Well-known Member
- Joined
- Aug 28, 2006
- Messages
- 1,155
- Office Version
- 2019
- Platform
- Windows
Hello All.
Sometime ago, I put a post up for a hyperlink Macro, to convert various URLs To active hyperlinks to open their respective webpage.
The URLs (Which at the moment aren't hyperlinked can look like the following;
As you can see some don't even have the Http:,,,some don't have the www. but they are all websites which I'd like to be able to click on and open in my web browser.
VOGII helped me with a macro for this that I thought worked,, but I just couldn't have tested it correctly.
I've been trying for ages today, and I just can't get this to open all the above as active hyperlinks. (Actually it seems to only convert the first URL?)
VOGII's code was;
The URL List to be converted started from cell C4 by the way. There are approx 30,000
URL's to convert.
If someone can help me on this It would be most appreciated.
Many Thanks Everyone
John Caines
Sometime ago, I put a post up for a hyperlink Macro, to convert various URLs To active hyperlinks to open their respective webpage.
The URLs (Which at the moment aren't hyperlinked can look like the following;
Rich (BB code):
4cm.com
4crossfire.com
4her4him.net
abbeytrade.com
abcnews.go.com
abekaacademy.org
http://airlines-flight.net
http://airlines-hq.com
http://airline-sports-concert-show-tickets.com
http://airman.com
http://airner.info
http://airplanetickets.fjore.info
http://airplanetickets.fjore.info
soundclick.com
soundexpressiongreetings.com
soundgrid.net
southafrica.info
http://www-suif.stanford.edu
http://www-sul.stanford.edu
http://www-sul.stanford.edu
http://www-truck-deals.info
http://www-truck-news.info
As you can see some don't even have the Http:,,,some don't have the www. but they are all websites which I'd like to be able to click on and open in my web browser.
VOGII helped me with a macro for this that I thought worked,, but I just couldn't have tested it correctly.
I've been trying for ages today, and I just can't get this to open all the above as active hyperlinks. (Actually it seems to only convert the first URL?)
VOGII's code was;
Rich (BB code):
Sub HyperlinkConverter2()
Dim lastrow As Long, i As Long
Dim web As String
Dim t As Date
t = Now()
Application.ScreenUpdating = False
Application.Calculation = xlManual
lastrow = Cells(Rows.Count, 2).End(xlUp).Row
For i = 4 To lastrow
web = Cells(i, 2).Value
If Left(web, 7) <> "http://" Then web = "http://" & web
ActiveSheet.Hyperlinks.Add Anchor:=Cells(i, 2), Address:=web, TextToDisplay:=web
Next i
Application.ScreenUpdating = True
Application.Calculation = xlAutomatic
MsgBox "Hyperlink Converting Run Time: " & Format(Now() - t, "hh:mm:ss")
End Sub
The URL List to be converted started from cell C4 by the way. There are approx 30,000
URL's to convert.
If someone can help me on this It would be most appreciated.
Many Thanks Everyone
John Caines