Dirty Property Example
This example exports the spreadsheet to a file if changes have been made to it since the last time it was saved.
If Spreadsheet1.Dirty Then Spreadsheet1.ActiveSheet.Export "sstest.xls", Spreadsheet1.Constants.ssExportActionNone End If