Importing e-mail addresses not showing as hyperlinks

G

gls858

I imported several hundred email addresses into a spreadsheet
from an external source. How do I get them to show up as hyperlinks.

gls858
 
G

Gord Dibben

Sub MakeHyperlinks()
'David McRitchie code
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
 
G

gls858

Gord said:
Sub MakeHyperlinks()
'David McRitchie code
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

Thanks Gord. I'll post back the results later.

gls858
 
G

gls858

Gord said:
Sub MakeHyperlinks()
'David McRitchie code
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

Gord,
Just wanted to post back and let you know that worked. i really
appreciate your help and David McRitchie's too :)

gls858
 
G

Gord Dibben

David and I appreciate the feedback.

Gord

Gord,
Just wanted to post back and let you know that worked. i really
appreciate your help and David McRitchie's too :)

gls858
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top