Build 2.5.0.98 of xlsgen makes it possible to delete VBA macros in Excel spreadsheets. The DeleteMacros() method is exposed at the workbook level. The deletion of macros also involves the deletion of their bindings with spreadsheet objects (technically known as event handlers).
It works with Excel 97-2003 and Excel 2007 files.