Changing hyperlink email address fail

Joined
Jun 27, 2014
Messages
17
Have a quick question.

Need to change some information in a column list of email addresses that are hyperlinked to outlook.


Most addresses are correct with a hyperlink that works well. I have a couple of addresses that have information in the cell that opens up an outlook message to a different email address. Hovering over a cell with aaaaaa@xyz.com shows the message mailto:xxxxx@abc.com.

How do I change the hyperlink to the correct email address?

Thanks,
EF
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
How do I change the hyperlink to the correct email address?

Hi, if you are looking for some code to update en masse, then you could give this a try on a copy of your workbook:

Code:
Sub FixHyperLinks()
Dim HL As Hyperlink
For Each HL In ActiveSheet.Hyperlinks
    If UCase(Left(HL.Address, 7)) = "MAILTO:" Then HL.Address = "MailTo:" & HL.TextToDisplay
Next HL
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,284
Members
452,630
Latest member
OdubiYouth

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top