e-mails addresses

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

After pasting a text file - I want to make an entire column of e-mail
addresses live. I seem to recall having to use a third-party macro in an
earlier release - I have office 2007/vista.
 
You can use this macro for column B

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

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

Back
Top