e-mail address formatting

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

Guest

I import data as a delimited file. One column is e-mail address. We would
like to have it in Excel as mail hyperlink. You seem to be able to do that
by adding one space after each address, but we have hundreds. Can I do that
for all addresses at the same time?
 
Are you usng Excel XP? I thought it recognised e-mail address's and created
the hyperlink automatically?

to add a space, I'd add another column ad concatenate a space on the end=

(if you're e-mail address's are in col D)

=D1&" "

and use that.

Matt
 
Hi Sumac

Try this macro for column A

Sub test()
For Each myCell In Columns("A").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
 
Thanks for that idea Matt. I'd already tried to concatenate, but it didn't
work. After I sent the message, I figured out one way to do it, though. I
added a space manually to the A! entry, which caused it to become
hyperlinked. Then I used the format painter to format the remaining ones.

Thanks so much for your help.
 

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