Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TSA
 
Posts: n/a
Default Convert entire columns of text email addresses to hyperlinks

How do I convert an entire column of text only email addresses
to hyperlinks pointing to the same email address?

Any help greatly appreciated


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

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



"TSA" wrote in message ...
How do I convert an entire column of text only email addresses
to hyperlinks pointing to the same email address?

Any help greatly appreciated




  #3   Report Post  
TSA
 
Posts: n/a
Default

Works great!........Thanks!


"Ron de Bruin" wrote in message
...
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



"TSA" wrote in message

...
How do I convert an entire column of text only email addresses
to hyperlinks pointing to the same email address?

Any help greatly appreciated






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
how do I make make my hyperlinks show the email address they are . Dustin Excel Discussion (Misc queries) 0 January 13th 05 01:39 AM
Convert multiple columns to rows Lois Lane Excel Worksheet Functions 8 January 10th 05 12:47 AM
How do I format email addresses as Text only? Dstess Excel Worksheet Functions 5 January 9th 05 06:44 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Text to columns will not shut off. Gerald Cornforth Excel Worksheet Functions 5 December 15th 04 01:39 AM


All times are GMT +1. The time now is 08:59 PM.

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"