Macros and security · Short guide

How to tell if there is a macro in an Excel file?

Braxorn · Last updated 2026-11-22 · English

The file extension is the first clue: XLSM can store macros; XLSB and legacy XLS files may also contain macros. However, being in a format that supports macros does not necessarily indicate that there are macros in the file.

What can you do?

  1. Check the exact extension and expected source of the file.
  2. You can examine Excel's macro list in the trusted file; Be aware that this list does not show all event codes or special procedures.
  3. When comprehensive analysis is required, choose VBA and, if available, methods that examine Excel 4.0 macro content without running it.

A small example

An XLSM template may have been saved in a format that supports macros, but may not contain any VBA code. Another file may contain the opening event code that does not appear in the list.

What to watch for

The presence of the macro is not evidence of maliciousness. Renaming the extension also does not change the contents of the file. It is not necessary to press the Enable Content button to review.

Check the result

Save the result with "macro present/absent/could not be determined" and the scope of the review.

Examples are synthetic. Formulas use English function names and comma separators; names or separators may differ with your Excel language and regional settings. Menus and features vary by version.

Microsoft source (English)

Microsoft source (English)

Review your own workbook

You can start reviewing your Excel file in Braxorn. Check which controls are supported and review incomplete checks alongside the report scope.

Review your file