Spell Number
Spell Number
Note: Known as a User Defined Function (UDF), this code automates the task of converting
numbers to text throughout your worksheet.
Option Explicit
'Main Function
MyNumber = Trim(Str(MyNumber))
End If
Count = 1
Else
MyNumber = ""
End If
Count = Count + 1
Loop
Case ""
Case "One"
Case Else
End Select
Case ""
Case "One"
Case Else
End Select
End Function
End If
End If
GetHundreds = Result
End Function
Function GetTens(TensText)
Case Else
End Select
Case Else
End Select
GetTens = Result
End Function
Function GetDigit(Digit)
End Select
End Function
1. Type the formula =SpellNumber(A1) into the cell where you want to display a written
number, where A1 is the cell containing the number you want to convert. You can also
manually type the value like =SpellNumber(22.50).
2. Press Enter to confirm the formula.
Excel cannot save a workbook with macro functions in the standard macro-free
workbook format (.xlsx). If you click File > Save. A VB project dialog box opens.
Click No.