$ 0 0 NPOI doesn't support macro-enabled Excel file (xlsm). I'm afraid the macro part is lost while saving via NPOI.