SetCompatibilityMode Method (Word)

Sets the compatibility mode for the document.

Version Information

Version Added: Word 2010

Syntax

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.

Remarks

When you open a document in Word 2010 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 2010 are available while working with a document, so that people who edit the document using previous versions of Word will have full editing capabilities.

Example

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

ActiveDocument.SetCompatibilityMode (wdWord2003)

See Also

Concepts

Document Object

Document Object Members