Settings the colour on a hyperlink is a little different than setting the font on regular text. Below is an example of how I did this for our setup. $strmail contains the e-mail address that is taken from AD.

The example below is a snippet from a much larger script. We use multiple colours and multiple font sizes. They get set at the top of the script together with the font to be used. This makes it a lot easier to make changes if needed.

 Code:
$fontname = "Arial"
$fontmedium = "8"
;Font colour codes can be found by recording a macro in Word while setting the colour for some text.
$fontgray = "5855577" ;Gray RGB: 89.89.89

;Insert and select hyperlink and set font and attributes for the selection.
;Calculate where the hyperlink begins.
;Start selection at total length of all text minus the length of the url and select everything to the end of the text.
$objLink = $objSelection.Hyperlinks.Add($objSelection.Range, "mailto:" + $strmail,, "E-mail", $strmail)
$Selectionemail = $objDoc.Range($objSelection.End - (Len($strmail) + 1), $objSelection.End)
;Set font, size and underline for selection.
$Selectionemail.Font.Name = $fontname
$Selectionemail.Font.Size = $fontmedium
$Selectionemail.Font.Underline = 0
$Selectionemail.Font.Color = $fontgray
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.