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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,226,112
Messages
6,189,039
Members
453,521
Latest member
Chris_Hed

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