Avatar of marrick13
marrick13
 asked on

How to Unlink and Unformat Hyperlinks Between Two Characters?

Unlink Hyperlinks Between Brackets.docm

Have a macro called "Remove_Hyperlink_Between_Characters" (attached ) that is intended to unlink text that sites between two characters, < and > in this version, and remove whatever underlining and bold the link has (in other words, make it plain text). This is usually for email addresses that end up being links and become bold and underlined when copied from an online email client.

It works perfectly except that it does not remove the bold for some reason. The intellisense is not working when I enter the ".bold", but does with the .underline, so obviously I'm missing something here.

The attachment has the code and some samples that get unlinked but if they start out bold, remain bold, and I want their boldface removed.

What am I missing?

Microsoft WordVBA

Avatar of undefined
Last Comment
Fabrice Lambert

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Flyster

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
Fabrice Lambert

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes