Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Convert text to hyperlink

How do I convert a text string to a hyperlink in an
Excel Spreadsheet?

I have about 63000 lines that need converted!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default Convert text to hyperlink

hi
this might work for you...
Sub AddHyperlinks()
Dim hl As Range
Dim r As Range
Dim lr As Long
lr = Cells(Rows.Count, "B").End(xlUp).Row 'change column if needed
Set r = Range("B2:B" & lr) 'change to suit your data
For Each hl In r
ActiveSheet.Hyperlinks.Add anchor:=hl, Address:= _
hl.Value, TextToDisplay:=hl.Value
Next hl
End Sub

regards
FSt1

"Ryer" wrote:

How do I convert a text string to a hyperlink in an
Excel Spreadsheet?

I have about 63000 lines that need converted!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default Convert text to hyperlink

Hi,
text start in A2 in B2 enter

=Hyperlink(A2)

copy formula down

"Ryer" wrote:

How do I convert a text string to a hyperlink in an
Excel Spreadsheet?

I have about 63000 lines that need converted!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Convert text to hyperlink

What type of text string?

This may work if the links would be valid like URL's or email addresses.

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 MS Excel MVP

On Wed, 9 Sep 2009 06:50:01 -0700, Ryer
wrote:

How do I convert a text string to a hyperlink in an
Excel Spreadsheet?

I have about 63000 lines that need converted!


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
Convert to hyperlink EllenM Excel Worksheet Functions 0 February 4th 09 01:00 AM
convert text to hyperlink se7098 Excel Worksheet Functions 2 February 2nd 09 10:54 PM
Convert Inserted HTML text as Hyperlink [email protected] Excel Worksheet Functions 3 December 2nd 08 10:48 PM
Convert hyperlink function into hyperlink Pai Excel Worksheet Functions 4 November 10th 08 03:29 PM
How to convert a hyperlink to its target full-text URL Excel Discussion (Misc queries) 2 July 7th 05 01:40 PM


All times are GMT +1. The time now is 06:02 AM.

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

About Us

"It's about Microsoft Excel"