View Single Post
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Coloured hyperlinks in Word 2007?

DavidUK wrote:
Dear All,

I would like to insert different coloured hyperlinks into my
documents. I have created a simple macro which inserts the hyperlink
with no problem. I can control the hyperlink style using the dialog
box but it makes a global change to all the hyperlinks in the
document (all the hyperlinks are the same colour). What I want is to
be able to press a shortcut key and insert a red hyperlink and
another key for a blue hyperlink. I have thought about using a small
image so I would have full control over colour etc but I feel that
this would not be such a good solution,

Any ideas?

Thanks

David


You can define your own character styles, such as HyperlinkRed or
HyperlinkGreen (or whatever names you like). In the New Style dialog, set
the Based On style as Hyperlink and change the color to your choice.

The Insert Hyperlink dialog will always apply the Hyperlink style to begin
with, but then you can select the link and apply one of your custom styles.

The only drawback (if you consider it to be a drawback and not an advantage)
is that the altered hyperlinks won't change color -- by having the
FollowedHyperlink style automatically applied -- when you follow the link,
as would happen with an unaltered hyperlink.

--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so
all may benefit.