Discussion Locked

Excel 2000 Hyperlink

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

When I enter an email addrsss in a column, the hyperlink properties will setup automatically such that when i click the email address, outlook express will start automatically. But if I use copy and paste option for this column, hyperlink properities will not set up, therefore can't run outlook express when i click the address. Now I made
a list of serveral hundred email address by copy and paste option by mistake, how can i set all the those hyperlink properities by just a few clicks or by marco, etc...

5 replies

by awilliams3

A quick and dirty VBA routine...

Sub converttomailhyperlink()
Dim rngItem As Excel.Range

On Error Resume Next
For Each rngItem In Selection
rngItem.Parent.Hyperlinks.Add anchor:=rngItem, _
Address:="Mailto:" & rngItem.Value, _
TextToDisplay:=rngItem.Value
Next rngItem
On Error GoTo 0
End Sub

Highligh the range of data in question and execute the above routine. Test first!

Note, this does not work for Excel 97 (drop the TextToDisplay argument).

This discussion is closed to new replies.