DisableFeatures Property

Microsoft Word Visual Basic

property. The default value is False. Read/write Boolean.

expression.DisableFeatures

expression    Required. An expression that returns one of the objects in the Applies To list.

Remarks

The DisableFeatures property only affects the document for which you set the property. Use this property if you plan on sharing a document between users with an earlier versions of Microsoft Word, so you don't end up introducing into a document features that are not available in their versions of Word.

Use the DisableFeaturesByDefault property to disable in all documents features introduced after a specified version.

Example

This example disables all features added after Word for Windows 95, versions 7.0 and 7.0a, for the current document. The global default setting remains unchanged.

Sub FeaturesDisable()
    With ThisDocument

        'Checks whether features are disabled
        If .DisableFeatures = True Then

            'If they are, disables all features after Word for Windows 95
            .DisableFeaturesIntroducedAfter = wd70
        Else

            'If not, turns on the disable features option and disables
            'all features introduced after Word for Windows 95
            .DisableFeatures = True
            .DisableFeaturesIntroducedAfter = wd70
        End If
    End With
End Sub