UseHyperlinks Property

Microsoft Word Visual Basic

UseHyperlinks Property

       

Returns or sets whether entries in a table of contents or a table of figures should be formatted as hyperlinks when publishing to the Web. Read/write Boolean.

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