Convertir un número en letra en español en Excel
Esta macro es una adaptación de la macro "How to convert a numeric value into English words in Excel" que Microsoft tiene colgada aquí https://support.microsoft.com/es-es/help/213360/how-to-convert-a-numeric-value-into-english-words-in-excel Option Explicit 'Main Function Function SpellNumber(ByVal MyNumber) Dim Euros, Cents, Temp Dim DecimalPlace, Count ReDim Place(9) As String Place(2) = " Mil " Place(3) = " Millones " Place(4) = " Mil Millones " Place(5) = " Billones " ' String representation of amount. MyNumber = Trim(Str(MyNumber)) ' Position of decimal place 0 if nUn. DecimalPlace = InStr(MyNumber, ".") ' Convert cents and set MyNumber to dollar amount. If DecimalPlace > 0 Then Cents = GetTens(Left(Mid(MyNumber, DecimalPlace + 1) & _ ...