Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 271
Default VBA to make e-mail address in a cell to a hyperlink



I have a column that has e-mail addresses typed in each cell. If I place
the curser in the cell and hit return, Execl converts the address into a
hyperlink to where I can just click the cell and Outlook opens automatically
with the e-mail address in the "To:" box.

Is their a VBA that will convert each cell in the column to hyperlinks?


--
Thanks
Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default VBA to make e-mail address in a cell to a hyperlink

Shawn,

Here's one way:

Sub Test
Dim c As Range

With ActiveSheet
For Each c In Application.Intersect(.UsedRange, .Range("A:A"))
.Hyperlinks.Add anchor:=c, Address:="mailto:" & c.Value
Next c
End With

End Sub

--
Hope that helps.

Vergel Adriano


"Shawn" wrote:



I have a column that has e-mail addresses typed in each cell. If I place
the curser in the cell and hit return, Execl converts the address into a
hyperlink to where I can just click the cell and Outlook opens automatically
with the e-mail address in the "To:" box.

Is their a VBA that will convert each cell in the column to hyperlinks?


--
Thanks
Shawn

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
e-mail address in an Excel 2003 cell Gene D New Users to Excel 2 October 31st 07 12:14 PM
How make hyperlink refer to cell content rather than cell address. Omunene Excel Discussion (Misc queries) 3 March 2nd 06 01:07 AM
delete everything except e-mail address from cell ToolMrl Excel Programming 1 January 30th 06 11:12 PM
Can you make a Excel hyperlink connect to an outlook address card [email protected] Excel Discussion (Misc queries) 0 May 5th 05 09:30 PM
Separating an email address embedded in a "mail to:" hyperlink littleellisdude Excel Discussion (Misc queries) 3 May 3rd 05 05:51 PM


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