Muokkaa

Jaa


Document.SetCompatibilityMode method (Word)

Sets the compatibility mode for the document.

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 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.

Example

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

ActiveDocument.SetCompatibilityMode (wdWord2003)

See also

Document Object

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.