expression.UnderlineHyperlinks
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The UnderlineHyperlink property uses the following settings.
Setting | Visual Basic | Description |
---|---|---|
Yes | True | (Default) Hyperlinks will be underlined |
No | False | Hyperlinks will not be underlined. |
You can set the UnderlineHyperlink property through the DefaultWebOptions property or the SetOption method by using Visual Basic.
You can set or change the underline hyperlink setting 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.
Use the DefaultWebOptions property to identify or set the Application object's DefaultWebOptions object properties.
Example
The following example displays a message indicating wither hyperlinks will be underlined.
MsgBox "Hyperlinks will be underlined: " & _
Application.DefaultWebOptions.UnderlineHyperlinks