Share via


Saved Property

Home Page (Objects)OverviewFAQReference

Applies to: Document object, TextDocument object

Gets a document's saved status, indicating whether a document has changed since it was last saved.

Syntax

object**.Saved**

Parameters

object

An expression that evaluates to a Document object or a TextDocument object.

Remarks

The Saved property has the Boolean type and gets one of the following values:

  • True   Indicates that the document has not been changed since it was created or last saved.

  • False   Indicates that the document has been changed since it was last saved.

Example

The following example gets the saved status of the active document:

Dim status
status = ActiveDocument.Saved