A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
The easiest way is to save the workbook as a .xlsx workbook. Excel will display a warning that all macro content will be lost. That is what you want.
Close and reopen the workbook, then add code, and save the workbook as a macro-enabled workbook (.xlsm) again.