Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword
Like this
29Activity
×
0 of .
Results for:
No results containing your search query
P. 1
De numeral a literal en excel

De numeral a literal en excel

Ratings:

4.0

(1)
|Views: 11,327|Likes:
Published by api-3796467
Nos permite convertir de numeral a liteal en excel
Nos permite convertir de numeral a liteal en excel

More info:

Published by: api-3796467 on Oct 17, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See More
See less

03/18/2014

pdf

text

original

 
'funcion para convertir los numeros a caracteres.'falón Dalence josé A. (falon.civ@gmail.com)'sucre - bolivia' 70332435function num_texto(numero)dim textodim millonesdim milesdim cientosdim decimalesdim cadenadim cadmillonesdim cadmilesdim cadcientostexto = numerotexto = formatnumber(texto, 2)texto = right(space(14) & texto, 14)millones = mid(texto, 1, 3)miles = mid(texto, 5, 3)cientos = mid(texto, 9, 3)decimales = mid(texto, 13, 2)cadmillones = conviertecifra(millones, 1)cadmiles = conviertecifra(miles, 1)cadcientos = conviertecifra(cientos, 0)if trim(cadmillones) > "" thenif trim(cadmillones) = "un" thencadena = cadmillones & " millon"elsecadena = cadmillones & " millones"end ifend ifif trim(cadmiles) > "" thencadena = cadena & " " & cadmiles & " mil"end ifif trim(cadmiles & cadcientos) = "un" thencadena = cadena & "uno con " & decimales & "/100"elseif miles & cientos = "000000" thencadena = cadena & " " & trim(cadcientos) & " " & decimales & "/100"elsecadena = cadena & " " & trim(cadcientos) & " " & decimales & "/100"end ifend ifnum_texto = trim(cadena)end functionfunction conviertecifra(texto, sw)dim centenadim decenadim unidaddim txtcentenadim txtdecenadim txtunidadcentena = mid(texto, 1, 1)decena = mid(texto, 2, 1)unidad = mid(texto, 3, 1)select case centenacase "1"txtcentena = "cien"
 
if decena & unidad <> "00" thentxtcentena = "ciento"end ifcase "2"txtcentena = "doscientos"case "3"txtcentena = "trescientos"case "4"txtcentena = "cuatrocientos"case "5"txtcentena = "quinientos"case "6"txtcentena = "seiscientos"case "7"txtcentena = "setecientos"case "8"txtcentena = "ochocientos"case "9"txtcentena = "novecientos"end selectselect case decenacase "1"txtdecena = "diez"select case unidadcase "1"txtdecena = "once"case "2"txtdecena = "doce"case "3"txtdecena = "trece"case "4"txtdecena = "catorce"case "5"txtdecena = "quince"case "6"txtdecena = "dieciseis"case "7"txtdecena = "diecisiete"case "8"txtdecena = "dieciocho"case "9"txtdecena = "diecinueve"end selectcase "2"txtdecena = "veinte"if unidad <> "0" thentxtdecena = "veinti"end ifcase "3"txtdecena = "treinta"if unidad <> "0" thentxtdecena = "treinta y "end ifcase "4"txtdecena = "cuarenta"if unidad <> "0" thentxtdecena = "cuarenta y "end ifcase "5"

Activity (29)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
juanca186 liked this
Cesar Fernandez added this note|
excelente muy util
marguepa liked this
Edwin Loayza liked this
jorgeivan1 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->