Saved Property

Applies To

VBProject object.

Description

Returns a Boolean value indicating whether or not the object was edited since the last time it was saved. Read/write.

Return Values

The Saved property returns these values:

Value

Description

True

The object has not been edited since the last time it was saved.

False

The object has been edited since the last time it was saved.


Remarks

The SaveAs method sets the Saved property to True.

Note If you set the Saved property to False in code, it returns False, and the object is marked as if it were edited since the last time it was saved.

See Also

Protection property.

Example

The following example uses the Saved property to return a Boolean value indicating whether or not the specified project has been saved in its current state.

Debug.Print Application.VBE.VBProjects(1).Saved