Workbook.Saved Property

Definition

Gets or sets a value that indicates whether no changes have been made to the workbook since it was last saved.

public bool Saved { get; set; }

Property Value

true if no changes have been made to the workbook since it was last saved; otherwise, false.

Remarks

If a workbook has never been saved, its Path property returns an empty string ("").

You can set this property to true if you want to close a modified workbook without either saving it or being prompted to save it.

Applies to