When ExcludeMacro is set to true, buttons associated with macros may produce the error "Data may have been lost." Therefore, when excluding macros, remove all associated buttons from the spreadsheet. ExcelWriter, by default, will include macros in the generated workbookBy default this property is false, and setting it to false has no effect on the output. This property has no effect until Save is called, at which point the macros will be permanently removed from the workbook if it is true. If the workbook originally did not have any macros, this property has no effect. |