What is XLSM?
XLSM is the macro-enabled version of the Excel XLSX format. It stores everything an XLSX workbook does (sheets, formulas, formatting and charts) plus VBA macros, small programs that automate tasks inside the workbook.
Excel introduced XLSM alongside XLSX in 2007 and split them on purpose: a file ending in .xlsx can never contain macros, so the extension alone tells you whether a workbook can run code.
Because macros can be misused to spread malware, Excel blocks or warns about them when you open an XLSM file, especially one downloaded from the internet. Programs other than Excel can usually open the data in an XLSM file, but they don't run its VBA macros.