Options.AutoFormatAsYouTypeReplaceHyperlinks Property (Word)

Office 2013 and later

Contribute to this content

Use GitHub to suggest and submit changes. See our guidelines for contributing to VBA documentation.

True if e-mail addresses, server and share names (also known as UNC paths), and Internet addresses (also known as URLs) are automatically changed to hyperlinks as you type. Read/write Boolean.

expression .AutoFormatAsYouTypeReplaceHyperlinks

expression A variable that represents an Options collection.

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.

This example enables Word to automatically replace any Internet or network paths with hyperlinks when the paths are typed.

Options.AutoFormatAsYouTypeReplaceHyperlinks = True

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

Dim blnAutoFormat as Boolean 
blnAutoFormat = Options.AutoFormatAsYouTypeReplaceHyperlinks