Wauvel

Excel like a finance pro.

← The library

VBA · Getting started

Macro-enabled workbooks

Macros only survive in .xlsm (or .xlsb) files; saving as .xlsx strips them.

Daily driverDifficulty 900 · Capable
Practice · 2 questions →

When to use it

Macros only survive in macro-enabled formats. Saving as .xlsx silently removes every module, so the first thing to do with a workbook that will hold code is Save As .xlsm.

The code

Code
File > Save As > Excel Macro-Enabled Workbook (*.xlsm)

Worked examples

  • Keep macros

    File > Save As > Excel Macro-Enabled Workbook (*.xlsm) Code is kept with the file

    Do this before writing any code.

  • Binary format

    Save As .xlsb A binary macro-enabled file that is smaller and faster

    Good for large models with code.

  • The warning

    Save As .xlsx by mistake A warning appears; continuing strips the code

    Read the prompt.

Worth knowing

  • .xlsb loads faster and is smaller, but some tools cannot read it.
  • Keep a .xlsm master even if you send .xlsx copies.
  • Add-ins (.xlam) share macros across workbooks.

Where it goes wrong

  • Emailing an .xlsm often gets it blocked; zip it or share a link.
  • Recipients must enable content before macros run.

Related

Learn the moves here — or let Wauvel run them on your numbers.

Meet your AI CFO →

One CFO-grade Excel tip a week

A short, practical email for finance operators — functions, shortcuts, and the moves that save an afternoon. Free, unsubscribe anytime.