Hyperlink Color

V

vbaNOOB

Hi all,

Hyperlink can be created in the document. Once the link is clicked, the
color of the link will be changed.

My question is if there is any way I can control the color after the link is
clicked?

I know I can control the link color or formatting when the link is first
created:
HL.range.font.color = wdColorGreen
HL.range.font.underline = wdUnderlineNone

Many Thanks
 
T

Tony Jollans

Before being visited, the link will take on the attributes of the
"Hyperlink" style. After having been visited, it will take on the attributes
of the "FollowedHyperlink" style.

You can, of course, apply direct formatting as you suggest, but you have no
way of knowing when or if the link has been visited so if you want to
automatically affect the format of visited links you must change the style.
 
V

vbaNOOB

Thank you very much.

So it's all about style. I can control all thing about Hyperlink by changing
those two style.
 

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

Top