Lotus Notes - MONTO ESCRITO

 
Vista:

MONTO ESCRITO

Publicado por PEDRO RODRIGUEZ (4 intervenciones) el 17/02/2005 20:30:05
NECESITO EL CODIGO DEL MONTO ESCRITO SI ALGUIEN ME LO PUEDE ENVIAR
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:MONTO ESCRITO

Publicado por Pedro Meza (89 intervenciones) el 22/02/2005 14:22:11
son dos funciones VB que pase a lotus script
debes ocupar PASELETRAS(número)


Function ALETRAS(x)
'DIVIDE DE A GRUPOS DE TRES DIGITOS Y CORRIGE LAS EXCEPCIONES
Dim PARTE(4)
'Ver para anular los decimales para que no se produzcan errores
x = Fix(x)
For i = 1 To 1 + Len(x) / 3
PARTE(i) = Right(x, 3)
x = Int(x / 1000)
Next
ALETRAS = ""
ALETRAS = Nombre(PARTE(1))
If PARTE(2) = 1 Then
ALETRAS = "MIL " + ALETRAS
End If
If PARTE(2) > 1 Then
If Right(Nombre(PARTE(2)), 3) = "UNO" Then
ALETRAS = Left(Nombre(PARTE(2)), Len(Nombre(PARTE(2))) - 1) + " MIL" + ALETRAS
Else
ALETRAS = Nombre(PARTE(2)) + " MIL " + ALETRAS
End If
End If
If PARTE(3) = 1 Then
ALETRAS = "UN MILLON " + ALETRAS
End If
If PARTE(3) > 1 Then
If Right(Nombre(PARTE(3)), 3) = UNO Then
ALETRAS = Left(Nombre(PARTE(3)), Len(Nombre(PARTE(3)))) + MILLONES + ALETRAS
Else
ALETRAS = Nombre(PARTE(3)) + " MILLONES " + ALETRAS
End If
End If
If PARTE(4) = 1 Then
If PARTE(3) = 0 Then
ALETRAS = "MILLONES" + ALETRAS
End If
ALETRAS = "MIL " + ALETRAS
End If
If PARTE(4) > 1 Then
If PARTE(3) = 0 Then
ALETRAS = "MILLONES" + ALETRAS
End If
If Right(Nombre(PARTE(4)), 3) = "UNO" Then
ALETRAS = Left(Nombre(PARTE(4)), Len(Nombre(PARTE(4)))) + "MIL" + ALETRAS
Else
ALETRAS = Nombre(PARTE(4)) + " MIL " + ALETRAS
End If
End If
End Function

Function PASELETRAS(x)
dec = x
dec3 = Format(dec, "##,##0.00")
DEC2 = Right(dec3, 2)
PASELETRAS = ""
PASELETRAS = ALETRAS(x)+ " PESOS"
End Function
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:MONTO ESCRITO

Publicado por alcides99 (1 intervención) el 27/04/2007 00:59:23
Master, como hago para meterlo dentro del excel??

Muchas Gracias
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:MONTO ESCRITO

Publicado por cristian (1 intervención) el 13/02/2009 22:55:29
Gracias me sirvio de mucho....

un programa muy preciso

Cristian Torres
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:MONTO ESCRITO

Publicado por CESAR BERRIO (1 intervención) el 27/03/2007 21:24:50
¿CUAL ES EL PROGRAMA QUE ME PERMITE ESCRIBIR UNA SUMA DE DINERO EN NÚMEROS Y EL ME LO COLOCA EN OTRA CELDA DE UNA HOJA ELECTRONICA EN LETRAS? ALGUIEN ME DIJO QUE SE LLAMA MONTO ESCRITO.
SI ES ASÍ POR FAVOR ENVÍAME MAS INFORMACION.
COMO SE OBTIENE? DONDE BUSCA?

MIL GRACIAS
CESAR AUGUSTO BERRIO
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:MONTO ESCRITO

Publicado por jesus (1 intervención) el 24/11/2009 18:23:48
por favor para kien pueda ayudarme..¡¡ necesito una codigo en php que introduzcas un numero del 0 hasta el 500000 y obtenga el mismo numero como salida pero escrito en letras... como hago..????
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar