<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Module Archives - Number to Words Converter</title>
	<atom:link href="https://number-to-words.com/tag/module/feed/" rel="self" type="application/rss+xml" />
	<link>https://number-to-words.com/tag/module/</link>
	<description>Tootls to convert number to words in English, Indian, French, Arabic, German, Chinese, Spanish</description>
	<lastBuildDate>Sat, 10 Jan 2026 05:15:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://number-to-words.com/wp-content/uploads/2022/12/favicon.jpg</url>
	<title>Module Archives - Number to Words Converter</title>
	<link>https://number-to-words.com/tag/module/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Automatically Convert Numbers to Words in Excel</title>
		<link>https://number-to-words.com/how-to-automatically-convert-numbers-to-words-in-excel/</link>
		
		<dc:creator><![CDATA[Editor]]></dc:creator>
		<pubDate>Sat, 10 Jan 2026 05:15:41 +0000</pubDate>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel Functions]]></category>
		<category><![CDATA[Excel Macro]]></category>
		<category><![CDATA[Functions]]></category>
		<category><![CDATA[Macro]]></category>
		<category><![CDATA[Module]]></category>
		<category><![CDATA[Number to Words]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SpellNumber]]></category>
		<category><![CDATA[SpellNumber function]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[VBA Number to Words]]></category>
		<category><![CDATA[VBA Script]]></category>
		<category><![CDATA[xlsm]]></category>
		<guid isPermaLink="false">https://number-to-words.com/?p=688</guid>

					<description><![CDATA[<p>Whether you are preparing professional invoices, printing bank checks, or finalizing financial reports, writing out currency amounts in words adds a layer of professionalism and security. Surprisingly, Microsoft Excel does not include a built-in &#8220;Number to Words&#8221; button. However, you can easily add this functionality yourself using a VBA (Visual ... </p>
<p class="read-more-container"><a title="How to Automatically Convert Numbers to Words in Excel" class="read-more button" href="https://number-to-words.com/how-to-automatically-convert-numbers-to-words-in-excel/#more-688" aria-label="More on How to Automatically Convert Numbers to Words in Excel">Read more</a></p>
<p>The post <a href="https://number-to-words.com/how-to-automatically-convert-numbers-to-words-in-excel/">How to Automatically Convert Numbers to Words in Excel</a> appeared first on <a href="https://number-to-words.com">Number to Words Converter</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" src="https://number-to-words.com/wp-content/uploads/2026/01/excel-vba-number-to-words.jpg" alt="Excel VBA Number to Words Macro" width="800" height="309" class="alignnone size-full wp-image-695" srcset="https://number-to-words.com/wp-content/uploads/2026/01/excel-vba-number-to-words.jpg 800w, https://number-to-words.com/wp-content/uploads/2026/01/excel-vba-number-to-words-300x116.jpg 300w, https://number-to-words.com/wp-content/uploads/2026/01/excel-vba-number-to-words-768x297.jpg 768w" sizes="(max-width: 800px) 100vw, 800px" /><br />
Whether you are preparing professional invoices, printing bank checks, or finalizing financial reports, writing out currency amounts in words adds a layer of professionalism and security.</p>
<p>Surprisingly, Microsoft Excel does not include a built-in &#8220;Number to Words&#8221; button. However, you can easily add this functionality yourself using a VBA (Visual Basic for Applications) script. This method is the most reliable way to handle large figures and decimals automatically.</p>
<p><strong>Why Use the VBA Method?</strong><br />
While complex formulas exist to &#8220;spell&#8221; numbers, they are often bulky and difficult to troubleshoot. Using a User Defined Function (UDF) like SpellNumber is:</p>
<ul>
<li>Cleaner: It looks and acts just like a native Excel function.</li>
<li>Scalable: It handles everything from units to billions effortlessly.</li>
<li>Professional: It automatically formats results into &#8220;Dollars and Cents.&#8221;</li>
</ul>
<p><strong>Step-by-Step Guide: Adding the SpellNumber Function</strong><br />
Follow these steps to enable automatic conversion in your workbook.</p>
<ol>
<li><strong>Open the VBA Editor</strong><br />
Open your Excel workbook and press <strong>Alt + F11</strong> on your keyboard. This will open the Visual Basic for Applications window.</li>
<p></p>
<li><strong>Insert a New Module</strong><br />
In the top menu, go to <strong>Insert > Module</strong>. A blank white window will appear on the right side of the screen.</li>
<p></p>
<li><strong>Add the Script</strong><br />
Copy and paste the SpellNumber code into that blank module window.</p>
<blockquote><p>
<code>Option Explicit</p>
<p>'Main Function<br />
Function SpellNumber(ByVal MyNumber)<br />
    Dim Dollars, Cents, Temp<br />
    Dim DecimalPlace, Count<br />
    ReDim Place(9) As String<br />
    Place(2) = " Thousand "<br />
    Place(3) = " Million "<br />
    Place(4) = " Billion "<br />
    Place(5) = " Trillion "</p>
<p>    ' String representation of amount<br />
    MyNumber = Trim(Str(MyNumber))</p>
<p>    ' Position of decimal place 0 if none<br />
    DecimalPlace = InStr(MyNumber, ".")</p>
<p>    ' Convert cents and set MyNumber to dollar amount<br />
    If DecimalPlace > 0 Then<br />
        Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & "00", 2))<br />
        MyNumber = Trim(Left(MyNumber, DecimalPlace - 1))<br />
    End If</p>
<p>    Count = 1<br />
    Do While MyNumber <> ""<br />
        Temp = GetHundreds(Right(MyNumber, 3))<br />
        If Temp <> "" Then Dollars = Temp & Place(Count) & Dollars<br />
        If Len(MyNumber) > 3 Then<br />
            MyNumber = Left(MyNumber, Len(MyNumber) - 3)<br />
        Else<br />
            MyNumber = ""<br />
        End If<br />
        Count = Count + 1<br />
    Loop</p>
<p>    ' Final result<br />
    Select Case Dollars<br />
        Case ""<br />
            Dollars = "No Dollars"<br />
        Case "One"<br />
            Dollars = "One Dollar"<br />
        Case Else<br />
            Dollars = Dollars & " Dollars"<br />
    End Select</p>
<p>    Select Case Cents<br />
        Case ""<br />
            Cents = " and No Cents"<br />
        Case "One"<br />
            Cents = " and One Cent"<br />
        Case Else<br />
            Cents = " and " & Cents & " Cents"<br />
    End Select</p>
<p>    SpellNumber = Dollars & Cents<br />
End Function</p>
<p>' Converts a number from 100-999 into text<br />
Function GetHundreds(ByVal MyNumber)<br />
    Dim Result As String</p>
<p>    If Val(MyNumber) = 0 Then Exit Function</p>
<p>    MyNumber = Right("000" & MyNumber, 3)</p>
<p>    ' Convert the hundreds place<br />
    If Mid(MyNumber, 1, 1) <> "0" Then<br />
        Result = GetDigit(Mid(MyNumber, 1, 1)) & " Hundred "<br />
    End If</p>
<p>    ' Convert the tens and ones place<br />
    If Mid(MyNumber, 2, 2) <> "00" Then<br />
        Result = Result & GetTens(Mid(MyNumber, 2))<br />
    End If</p>
<p>    GetHundreds = Result<br />
End Function</p>
<p>' Converts a number from 10-99 into text<br />
Function GetTens(TensText)<br />
    Dim Result As String</p>
<p>    Result = "" ' Null out the temporary function value</p>
<p>    If Val(Left(TensText, 1)) = 1 Then   ' If value between 10-19<br />
        Select Case Val(TensText)<br />
            Case 10: Result = "Ten"<br />
            Case 11: Result = "Eleven"<br />
            Case 12: Result = "Twelve"<br />
            Case 13: Result = "Thirteen"<br />
            Case 14: Result = "Fourteen"<br />
            Case 15: Result = "Fifteen"<br />
            Case 16: Result = "Sixteen"<br />
            Case 17: Result = "Seventeen"<br />
            Case 18: Result = "Eighteen"<br />
            Case 19: Result = "Nineteen"<br />
            Case Else<br />
        End Select<br />
    Else ' Value between 20-99<br />
        Select Case Val(Left(TensText, 1))<br />
            Case 2: Result = "Twenty "<br />
            Case 3: Result = "Thirty "<br />
            Case 4: Result = "Forty "<br />
            Case 5: Result = "Fifty "<br />
            Case 6: Result = "Sixty "<br />
            Case 7: Result = "Seventy "<br />
            Case 8: Result = "Eighty "<br />
            Case 9: Result = "Ninety "<br />
            Case Else<br />
        End Select<br />
        Result = Result & GetDigit(Right(TensText, 1))  ' Retrieve ones place<br />
    End If</p>
<p>    GetTens = Result<br />
End Function</p>
<p>' Converts a number from 1-9 into text<br />
Function GetDigit(Digit)<br />
    Select Case Val(Digit)<br />
        Case 1: GetDigit = "One"<br />
        Case 2: GetDigit = "Two"<br />
        Case 3: GetDigit = "Three"<br />
        Case 4: GetDigit = "Four"<br />
        Case 5: GetDigit = "Five"<br />
        Case 6: GetDigit = "Six"<br />
        Case 7: GetDigit = "Seven"<br />
        Case 8: GetDigit = "Eight"<br />
        Case 9: GetDigit = "Nine"<br />
        Case Else: GetDigit = ""<br />
    End Select<br />
End Function</code></p></blockquote>
</li>
<p></p>
<li><strong>Save as a Macro-Enabled Workbook</strong><br />
This is a crucial step. Go to <strong>File > Save As</strong> and ensure you select Excel Macro-Enabled Workbook (*.xlsm) from the file type dropdown. If you save it as a standard .xlsx file, the function will not work next time you open the file.</li>
<p></p>
<li><strong>Use the Function</strong><br />
Return to your spreadsheet. You can now use your custom function just like =SUM(). In any cell, simply type:<br />
<code>=SpellNumber(A1)</code><br />
(Where A1 is the cell containing the number you want to convert.)</li>
</ol>
<p>The post <a href="https://number-to-words.com/how-to-automatically-convert-numbers-to-words-in-excel/">How to Automatically Convert Numbers to Words in Excel</a> appeared first on <a href="https://number-to-words.com">Number to Words Converter</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
