Document.SetCompatibilityMode Method (Word)

Office 2013 and later
GitHub-Mark-64px

Contribute to this content

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

Sets the compatibility mode for the document.

expression .SetCompatibilityMode(Mode)

expression A variable that represents a Document object.

Parameters

Name

Required/Optional

Data Type

Description

Mode

Required

Long

Specifies which version of Word to approximate. Use a constant from the WdCompatibilityMode enumeration as an argument for this parameter.

When you open a document in Word that was created in a previous version of Word, Compatibility Mode is turned on. Compatibility Mode ensures that no new or enhanced features in Word are available while working with a document, so that people who edit the document using previous versions of Word will have full editing capabilities.

The following code example puts Word in Word 2003 Compatibility Mode.

ActiveDocument.SetCompatibilityMode (wdWord2003)
Show: