Options.AutoFormatReplaceHyperlinks Property

Word Developer Reference

True if e-mail addresses, server and share names (also known as UNC paths), and Internet addresses (also known as URLs) are automatically formatted whenever Word AutoFormats a document or range. Read/write Boolean.

Syntax

expression.AutoFormatReplaceHyperlinks

expression   A variable that represents an Options object.

Remarks

Word changes any text that looks like an e-mail address, UNC, or URL to a hyperlink. Word doesn't check the validity of the hyperlink.

Example

This example enables replacement of any Internet or network paths with hyperlinks, and then it formats the selection automatically.

Visual Basic for Applications
  Options.AutoFormatReplaceHyperlinks = True
Selection.Range.AutoFormat

This example returns the status of the Internet and network paths with hyperlinks option on the AutoFormat tab in the AutoCorrect dialog box (Tools menu).

Visual Basic for Applications
  Dim blnAutoFormat as Boolean

blnAutoFormat = Options.AutoFormatReplaceHyperlinks

See Also