VBA & Macro Problems

Convert Numbers to Words Without Currency Labels in Excel VBA

Phi Hung VoPhi Hung Vo Nov 14, 2026 869 views

Question details

Modify an Excel VBA number-to-words function so it returns words without currency labels.

Convert Numbers to Words Without Currency Labels in Excel VBA
Product
Microsoft Excel VBA
Device & OS
not provided
Scenario
A user wants to spell out worksheet numbers using an existing VBA function without adding Dollars or Cents.
Observed behavior
The existing currency-oriented function includes labels such as Dollars, Cents, or No Cents in its output.
Before you start

Locate the existing number-to-words function and check how it handles decimal values. If the workbook contains VBA, use a macro-enabled format such as .xlsm and enable macros only if you trust the file.

Solution 1Recommended

Remove currency labels from the existing VBA function

Use this method when your function contains fixed text such as Dollars or No Cents.

1
Open the VBA editor

Open the workbook in Excel, then select Developer > Visual Basic or press Alt+F11. In Project Explorer, open the module containing the number-to-words function.

2
Find the currency text

Use Edit > Find in the VBA editor to search for strings such as "Dollars", "Cents", and "No Cents". Identify where each string is added to the result.

3
Edit the output

Remove or comment out the currency-label portions of the code while keeping the number-conversion logic. If the function handles decimals, retain or add a separator such as " point " if that is how you want decimals expressed.

4
Test the worksheet formula

Return to the worksheet and recalculate a cell that calls your function. Test zero, a decimal, a negative number, and a very large value; adjust the code if its existing range or decimal handling does not meet your needs.

Remove currency labels from the existing VBA function
Decimal wording depends on the code: Removing Cents does not automatically change how the fractional part is spelled. For example, producing “one point zero five” for 1.05 may require separate logic to preserve the zero.
Free Microsoft Office alternative

Work with Excel spreadsheets in WPS Office

WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for common Excel formats, making it easy to move everyday workbook tasks. It does not directly fix an Excel VBA function, and macro compatibility should be checked separately.

Open and edit spreadsheet data in a familiar interfaceWork with Microsoft Excel formats such as .xlsx and .xlsReview number-to-words results alongside source valuesUse a free, lightweight office suite for everyday documents
microsoft office alternative - wps office

Frequently Asked Questions

Can I remove Dollars and Cents without changing the conversion logic?

Often, yes. Open Developer > Visual Basic and look for the strings appended to the function’s result. Remove the labels while leaving the code that converts the numeric parts, then test the output.

Why does my decimal still sound like currency after I remove the labels?

The function may still convert the fractional part as cents. Inspect its decimal-handling code in the VBA editor and change it if you need digits spoken after “point,” especially for values such as 1.05.

Does Excel have a built-in number-to-words function?

Excel does not provide a standard built-in worksheet function that spells out numbers in English. You can use a custom VBA function or a suitable non-VBA formula approach.

What format should I use to save the VBA function?

In Excel, select File > Save As and choose Excel Macro-Enabled Workbook (*.xlsm). A standard .xlsx workbook cannot retain VBA code.