Share via


PageWindowEx.IsDirty Property

Returns a Boolean that represents whether a page has changed since the last time the user saved it. True indicates that the page has changed.

expression.IsDirty

expression Required. An expression that returns a PageWindowEx object.

Example

The following example checks if the active page has changed, and then executes the Save method if the page has been modified.

  Private Sub DirtyDocument()
    Dim objPage As PageWindowEx
    Set objPage = ActivePageWindow
    If objPage.IsDirty = True Then
            objPage.Save
    End If
End Sub

Applies to | PageWindowEx Object