Export (0) Print
Expand All
Expand Minimize

Workbook.Saved Property

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

Namespace:  Microsoft.Office.Tools.Excel
Assemblies:   Microsoft.Office.Tools.Excel (in Microsoft.Office.Tools.Excel.dll)
  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

bool Saved { get; set; }

Property Value

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

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.

Show:
© 2014 Microsoft