Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2004

Tip: Looking for answers? Try searching our database.

Transforming a col of text strings to hyperlinks

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Kreller - 19 Oct 2004 15:29 GMT
I have a column with various internet hyperlinks. However for som
reason they are stored in the column as ordinary text strings. Is ther
a way of transforming all the strings to hyperlinks
Gord Dibben - 19 Oct 2004 15:45 GMT
Kreller

Manually..........select the column of strings then in active cell hit F2 and
ENTER.

Just keep F2'ing and ENTER'ing until you reach the bottom.

VBA code from David McRitchie.......

Sub MakeHyperlinks()
'David McRitchie
Dim Cell As Range
   For Each Cell In Intersect(Selection, _
           Selection.SpecialCells(xlConstants, xlTextValues))
       With Worksheets(1)
           .Hyperlinks.Add Anchor:=Cell, _
                   Address:=Cell.Value, _
                   ScreenTip:=Cell.Value, _
                   TextToDisplay:=Cell.Value
       End With
   Next Cell
End Sub

Gord Dibben Excel MVP

>I have a column with various internet hyperlinks. However for some
>reason they are stored in the column as ordinary text strings. Is there
>a way of transforming all the strings to hyperlinks?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.