Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
M_E_Luft
 
Posts: n/a
Default how can i make 2500 urls in an excel file hyperlinked quickly?

I have an excell file with 2500 urls in it that were saved as plain text...i
need to hyperlink all of them but i don't want to do it 2500 times....does
anyone know a way to mass hyperlink several lines
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

You can do this with the urls in column B

Sub test()
For Each myCell In Columns("B").Cells.SpecialCells(xlCellTypeConstant s)
If myCell.Value Like "http://www.*" Then
ActiveSheet.Hyperlinks.Add Anchor:=myCell, _
Address:=myCell.Value, TextToDisplay:=myCell.Value
End If
Next
End Sub




--
Regards Ron de Bruin
http://www.rondebruin.nl


"M_E_Luft" wrote in message ...
I have an excell file with 2500 urls in it that were saved as plain text...i
need to hyperlink all of them but i don't want to do it 2500 times....does
anyone know a way to mass hyperlink several lines



  #3   Report Post  
Don Guillett
 
Posts: n/a
Default

Instead, you might prefer to use a worksheet double_click event to goto the
url clicked on?

From vba Help indes for hyperlink and then selecting followhyperlink
ActiveWorkbook.FollowHyperlink Address:="http://example.microsoft.com", _
NewWindow:=Trueso right click sheet tabview codeinsert thisSAVEtype
in a url myurl.comdoubleclick on itPrivate Sub
Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
ActiveWorkbook.followhyperlink Address:="http:\\" & Target, NewWindow:=True
End Sub




Don Guillett
SalesAid Software

"M_E_Luft" wrote in message
...
I have an excell file with 2500 urls in it that were saved as plain

text...i
need to hyperlink all of them but i don't want to do it 2500 times....does
anyone know a way to mass hyperlink several lines



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel updating from XML file - file path specific? Sean Excel Discussion (Misc queries) 4 August 5th 05 12:56 PM
VBA for Excel 2000 file is corrupt nkamp Excel Discussion (Misc queries) 0 May 26th 05 03:37 PM
how i make a pgm in excel for copying all the rows to a new file . Copying after checking condition in Exce Excel Discussion (Misc queries) 1 April 3rd 05 06:43 PM
How Do I open an excel file without Excel Viewer support CocoriteBallGiants Excel Discussion (Misc queries) 2 February 4th 05 10:50 PM
How do I make a backup file of my excel document? Starrystella Excel Discussion (Misc queries) 1 January 7th 05 07:43 PM


All times are GMT +1. The time now is 10:51 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"