You can use the HyperlinkColor property to specify or determine the default color of all hyperlinks within the Application object.
Setting
The HyperlinkColor property uses the following settings.
Setting | Visual Basic |
---|---|
Black | acColorIndexBlack (0) |
Maroon | acColorIndexMaroon (1) |
Green | acColorIndexGreen (2) |
Olive | acColorIndexOlive (3) |
Dark Blue | acColorIndexDarkBlue (4) |
Violet | acColorIndexViolet (5) |
Teal | acColorIndexTeal (6) |
Gray | acColorIndexGray (7) |
Silver | acColorIndexSilver (8) |
Red | acColorIndexRed (9) |
Bright Green | acColorIndexBrightGreen (10) |
Yellow | acColorIndexYellow (11) |
Blue (default) | acColorIndexBlue (12) |
Fushia | acColorIndexFushia (13) |
Aqua | acColorIndexAqua (14) |
White | acColorIndexWhite (15) |
You can set the HyperlinkColor property through the DefaultWebOptions property or the SetOption method by using Visual Basic.
You can set or change the default hyperlink color available in the Web Options dialog box. To display this dialog box, click Options on the Tools menu. Click the General tab and click the Web Pages button.
Remarks
The default color of a hyperlink is changed to the followed hyperlink color when a hyperlink control has been pressed.
Use the DefaultWebOptions property to identify or set the Application object's DefaultWebOptions object properties.