AutoVersion Property Example

This example disables the option to save a document version automatically when the active document is closed.

ActiveDocument.Versions.AutoVersion = wdAutoVersionOff

This example displays a message in the status bar if the option to save a document version automatically is active for Report.doc.

If Documents("Report.doc").Versions.AutoVersion = _
        wdAutoVersionOnClose Then
    StatusBar = "A version will be automatically saved"
End If