Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rick Wetzel
 
Posts: n/a
Default How do I convert email addresses to clickable links?

I have imported a column of valid email address. How can I make them
clickable links to email. No problem if I type them but there are far to
many.

Help apprecited. Thanks.

Rick Wetzel
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi Rick

Try this one for Column B in the activesheet

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




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



"Rick Wetzel" wrote in message ...
I have imported a column of valid email address. How can I make them
clickable links to email. No problem if I type them but there are far to
many.

Help apprecited. Thanks.

Rick Wetzel



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

small suggestion:

Instead of "*@*", the pattern "?*@?*.?*" will be more
discriminating for email addresses.

See http://mcgimpsey.com/excel/subs/converttomaillink.html



In article ,
"Ron de Bruin" wrote:

Try this one for Column B in the activesheet

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

  #4   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Thanks J.E for this suggestion



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



"JE McGimpsey" wrote in message ...
small suggestion:

Instead of "*@*", the pattern "?*@?*.?*" will be more
discriminating for email addresses.

See http://mcgimpsey.com/excel/subs/converttomaillink.html



In article ,
"Ron de Bruin" wrote:

Try this one for Column B in the activesheet

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



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
make XL stop interpreting email addresses as highlighted links? John Smith Excel Discussion (Misc queries) 5 April 1st 06 03:09 PM
How do I export email addresses from excel to outlook? Mark Davies Excel Discussion (Misc queries) 1 February 2nd 05 01:21 PM
Using CONCATENATE function to create email addresses from a list Almamba Excel Worksheet Functions 2 January 23rd 05 09:10 PM
Convert entire columns of text email addresses to hyperlinks TSA Excel Worksheet Functions 2 January 20th 05 04:31 PM
How do I format email addresses as Text only? Dstess Excel Worksheet Functions 5 January 9th 05 06:44 PM


All times are GMT +1. The time now is 08:16 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"