UseHyperlinks Property

Microsoft Word Visual Basic

expression.UseHyperlinks

expression    Required. An expression that returns one of the objects in the Applies To list.

Example

This example formats the first table of contents in the document using hyperlinks.

ActiveDocument.TableOfContents(1).UseHyperlinks = True