Technical Anshu
Tutorials Blog
Excel Fix

Save Your Excel File as XLSM or the SpellNumber Function Will Disappear

You pasted the function, the words appeared, you saved the file - and the next morning every amount in words is a NAME error. The most common reason is embarrassingly simple: the file was saved in the wrong format, and Excel removed the code while saving.

By Technical AnshuMicrosoft ExcelTwo minute fix
Watch the full video - the add-in installed and =SPELLNUMBER working live, step by step

It happens right after success, which is why it confuses everyone: the function worked, the words were correct, and then a routine Save quietly destroyed it. Here is why the file format decides whether your function lives or dies, and the better home for it if you use it every day.

Excel - Save As and the macro warning
Save as typeExcel Macro-Enabled Workbook (*.xlsm)
The following features cannot be saved in macro-free workbooks: VB project. To save a file with these features, click No, and then choose a macro-enabled file type in the File Type list.

The warning is real Excel wording - it appears when a file that contains VBA code is saved as .xlsx.

1

Why XLSX Quietly Deletes Your Function

The normal Excel format, .xlsx, was designed to be macro-free on purpose - that is its safety promise. It physically has no place to store VBA code. So when a workbook contains your SpellNumber function and you save it as .xlsx, Excel shows the warning above and, if you click Yes, saves the sheets without the code.

Nothing looks broken at first. The words already calculated stay on screen. But change any amount, or reopen the file tomorrow, and every word cell turns into a NAME error - because the function itself is gone. The data survived; the machine that produced it did not.

2

Save as XLSM Step by Step

  1. Press F12 or go to File then Save As
  2. In Save as type, choose Excel Macro-Enabled Workbook (*.xlsm)
  3. Give it a clear name - something like Invoice-With-Words.xlsm - and save
  4. Close and reopen the file once, and change an amount, to prove the words still recalculate

The file icon gains a small exclamation-style badge and the name ends in .xlsm - that is how you and anyone receiving it can tell it carries code.

3

The Yellow Security Bar Is Normal - Read It, Do Not Fear It

When you open an .xlsm file, Excel shows a yellow bar: SECURITY WARNING Macros have been disabled, with an Enable Content button. Until you click it, the words will not calculate.

For a file you built yourself, or the template your own office uses, clicking Enable Content is the normal, expected step. But learn the habit the right way round: the bar is a question, not a decoration. If an .xlsm arrives from a stranger by email, that same bar is the only thing standing between you and whatever its code does. Your own file - enable. Unknown file - do not.

4

Even Better for Daily Use - Keep the Function in an Add-In

If you type amounts in words in many different files, saving code inside every workbook is the wrong shape. Put the function in an add-in instead - that is the route the video takes.

  1. In the workbook that holds your pasted code, go to File then Save As
  2. Choose Excel Add-In (*.xlam) as the type and save - Excel offers its AddIns folder, which is the right home
  3. Then File then Options then Add-ins, Manage Excel Add-ins, Go, tick your add-in, OK

From then on =SpellNumber works in every workbook on that PC, and your invoice files can stay plain, safe .xlsx. One copy of the code, maintained in one place.

Watch the Full Video

See the file downloaded, the add-in switched on and the formula typed live - the complete method in about a minute.

Watch Full Video
Common Questions

I already saved as xlsx by mistake. Is the code gone forever?

From that saved copy, yes - the code is not hidden, it was removed during the save. If you still have an earlier .xlsm copy or the add-in file, reopen that. Otherwise paste the code again from the main guide; it takes two minutes. Your numbers and the already-typed words were never touched.

Will an xlsm file open normally on another person's Excel?

It opens, and they will see a yellow security bar. The word cells calculate only after they click Enable Content, because the code travels inside the file. If your office sends invoices out, the add-in route is cleaner for you - but the customer never needs the function, only the finished words, so print or send a PDF of the final invoice.

Is the xlsm format itself unsafe?

No. The format is a normal, official Excel format used by lakhs of offices. The risk lives in files from unknown sources, because macro code runs with your permissions. Treat an unknown xlsm like an unknown program: do not enable its content.

This guide is based on the Technical Anshu video on converting numbers to words in Excel - if a step gets stuck, ask in the video comments and you will get an answer.