Beruflich Dokumente
Kultur Dokumente
ARTICULOS
RECIBOS
CLIENTES / PROVEEDORES
ALTAS
BAJAS
MODIFICACIONES
Salir
INSTRUCCIONES LISTAS DESPLEGABLES VER FORUMULA de nmeros a letras VER FORUMULA de nmeros ejemplo VER MODULOS (Macros)
Poblacin Provincia
N FACTURA 1
PRECIO DTO.
22022
PRECIO % DTO. TOTAL
ARTICULO
Fecha Servicio
UNIDADES
1200
15.00
3,020.00
45,300.00
TOTAL FACTURA
(cuarenta y ocho mil cuatrocientos setenta y un euros)
48,471.00
Inscrita en el Registro Mercantil de Teruel, Tomo 1, Folio 54, Hoja TE.1887. C.I.F.: A 4830603
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
REGISTRO DE FACTURAS
Sumas Totales
N de Factur a Fecha Fra. N CLIENTE NIF NOMBRE C.POSTAL CALLE POBLACION PROVINCIA B.I.
I.V.A.
R.Equi.
Retencion
Total Fra.
Clientes / Prove
PROVEEDOR 4000001 4000002 4000003 4000004 4000005 4001234 400999 NIF 0035252K 225322L 125335-J C-2422525 332565-J 01235556-H 22022 PROVEEDOR SANCHEZ MARTIN ALVARO VIDAL SANCHEZ JULIAN LOPEZ RUIZ MARIA FINCAS JUAN, S.L.U. RUIZ SANCHEZ PICASO JOANSARE pepito palote CALLE SAN MARTIN,24 LARGA 10 LARGA 10 AVDA. ESPAA. 34 LA FRAGUA C/ A DENTRO C/ A DENTRO C.POSTAL 30300 28020 34800 28050 28020 25420 25421
CODIGO 1200
PRECIO 250.20
Pgina 28 de 123
DESCRIPCION
PRECIO
Pgina 29 de 123
DESCRIPCION
PRECIO
Pgina 30 de 123
DESCRIPCION
PRECIO
Pgina 31 de 123
DESCRIPCION
PRECIO
Pgina 32 de 123
DESCRIPCION
PRECIO
Pgina 33 de 123
DESCRIPCION
PRECIO
Pgina 34 de 123
DESCRIPCION
PRECIO
Pgina 35 de 123
DESCRIPCION
PRECIO
Pgina 36 de 123
DESCRIPCION
PRECIO
Pgina 37 de 123
DESCRIPCION
PRECIO
Pgina 38 de 123
DESCRIPCION
PRECIO
Pgina 39 de 123
DESCRIPCION
PRECIO
Pgina 40 de 123
DESCRIPCION
PRECIO
Pgina 41 de 123
DESCRIPCION
PRECIO
Pgina 42 de 123
DESCRIPCION
PRECIO
Pgina 43 de 123
DESCRIPCION
PRECIO
Pgina 44 de 123
DESCRIPCION
PRECIO
Pgina 45 de 123
Pgina 46 de 123
Pgina 47 de 123
Pgina 48 de 123
Pgina 49 de 123
Pgina 50 de 123
Pgina 51 de 123
Pgina 52 de 123
Pgina 53 de 123
Pgina 54 de 123
Pgina 55 de 123
Pgina 56 de 123
Pgina 57 de 123
Pgina 58 de 123
Pgina 59 de 123
Pgina 60 de 123
Pgina 61 de 123
Pgina 62 de 123
Pgina 63 de 123
Forma de pago :
1 2 3 4 5 6 7 8 9 10 11 12 CONTADO
RECIBO BANCARIO TRANSFERENCIA TALON TALON Fecha Fra. 30 Das TALON Fecha Fra. 60 Das TALON Fecha Fra. 90 Das TALON Fecha Fra. 120 Das
Banco :
1 2 3 4 5 6 7 8 9 10 11 12 Caja Duero Caja Rural Caja Espaa Banesto Banco Popular 1 2 3 4 5 6 7 8 9 10 11 12
N de Cuenta 2104 0123 45 1234567891 3016 0123 45 1234567891 2096 0123 45 1234567891 0030 0123 45 1234567891 0075 0123 45 1234567891 1 2 3 4 5 6 7 8 9 10 11 12
e Pago en Fra.)
Vencimiento :
CONTADO 30 Das Fecha Factura 60 Das Fecha Factura 90 Das Fecha Factura 120 Das Fecha Factura
JOANSARE
JOANSARE
C/ A DENTRO 25420 EL PUEBLO LEON
aLetras.xls
-1 1 1.01 6.88 20.01 757.73 1,321.91 60,504.02 928,273.79 4,990,124.27 89,917,279.84 692,185,294.63 5,071,107,598.79
1 2 3 4 5 6 7 8 9 10
Tipo 1
(menos un euro) (cero euros) (un euro) (un euro con un centimo) (seis euros con ochenta y ocho centimos) (veinte euros con un centimo) (setecientos cincuenta y siete euros con setenta y tres centimos) (mil trescientos veintiun euros con noventa y un centimos) (sesenta mil quinientos cuatro euros con dos centimos) (novecientos veintiocho mil doscientos setenta y tres euros con setenta y nueve centimos) (cuatro millones novecientos noventa mil ciento veinticuatro euros con veintisiete centimos) (ochenta y nueve millones novecientos diecisiete mil doscientos setenta y nueve euros con ochenta y cuatro centimos) (seiscientos noventa y dos millones ciento ochenta y cinco mil doscientos noventa y cuatro euros con sesenta y tres centimos) (cinco mil setenta y un millones ciento siete mil quinientos noventa y ocho euros con setenta y nueve centimos)
Tipo 2
(MENOS UN EURO) (CERO EUROS) (UN EURO) (UN EURO CON UN CENTIMO) (SEIS EUROS CON OCHENTA Y OCHO CENTIMOS) (VEINTE EUROS CON UN CENTIMO) (SETECIENTOS CINCUENTA Y SIETE EUROS CON SETENTA Y TRES CENTIMOS) (MIL TRESCIENTOS VEINTIUN EUROS CON NOVENTA Y UN CENTIMOS) (SESENTA MIL QUINIENTOS CUATRO EUROS CON DOS CENTIMOS) (NOVECIENTOS VEINTIOCHO MIL DOSCIENTOS SETENTA Y TRES EUROS CON SETENTA Y NUEVE CENTIMOS) (CUATRO MILLONES NOVECIENTOS NOVENTA MIL CIENTO VEINTICUATRO EUROS CON VEINTISIETE CENTIMOS) (OCHENTA Y NUEVE MILLONES NOVECIENTOS DIECISIETE MIL DOSCIENTOS SETENTA Y NUEVE EUROS CON OCHEN (SEISCIENTOS NOVENTA Y DOS MILLONES CIENTO OCHENTA Y CINCO MIL DOSCIENTOS NOVENTA Y CUATRO EURO (CINCO MIL SETENTA Y UN MILLONES CIENTO SIETE MIL QUINIENTOS NOVENTA Y OCHO EUROS CON SETENTA Y NU
Tipo 3
(Menos Un Euro) (Cero Euros) (Un Euro) (Un Euro Con Un Centimo) (Seis Euros Con Ochenta Y Ocho Centimos) (Veinte Euros Con Un Centimo) (Setecientos Cincuenta Y Siete Euros Con Setenta Y Tres Centimos) (Mil Trescientos Veintiun Euros Con Noventa Y Un Centimos) (Sesenta Mil Quinientos Cuatro Euros Con Dos Centimos) (Novecientos Veintiocho Mil Doscientos Setenta Y Tres Euros Con Setenta Y Nueve Centimos) (Cuatro Millones Novecientos Noventa Mil Ciento Veinticuatro Euros Con Veintisiete Centimos) (Ochenta Y Nueve Millones Novecientos Diecisiete Mil Doscientos Setenta Y Nueve Euros Con Ochenta Y Cuatro Centimos) (Seiscientos Noventa Y Dos Millones Ciento Ochenta Y Cinco Mil Doscientos Noventa Y Cuatro Euros Con Sesenta Y Tres Centim (Cinco Mil Setenta Y Un Millones Ciento Siete Mil Quinientos Noventa Y Ocho Euros Con Setenta Y Nueve Centimos)
Tipo 4
(Menos un euro) (Cero euros) (Un euro) (Un euro con un centimo) (Seis euros con ochenta y ocho centimos) (Veinte euros con un centimo) (Setecientos cincuenta y siete euros con setenta y tres centimos) (Mil trescientos veintiun euros con noventa y un centimos) (Sesenta mil quinientos cuatro euros con dos centimos) (Novecientos veintiocho mil doscientos setenta y tres euros con setenta y nueve centimos) (Cuatro millones novecientos noventa mil ciento veinticuatro euros con veintisiete centimos) (Ochenta y nueve millones novecientos diecisiete mil doscientos setenta y nueve euros con ochenta y cuatro centimos) (Seiscientos noventa y dos millones ciento ochenta y cinco mil doscientos noventa y cuatro euros con sesenta y tres centimos) (Cinco mil setenta y un millones ciento siete mil quinientos noventa y ocho euros con setenta y nueve centimos)
' Baja Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+x ' Range("D22").Select ActiveCell.FormulaR1C1 = "" Sheets("Listado").Select ActiveSheet.Unprotect Range("J6").Select Valor = ActiveCell.Value Range("C7").Select While ActiveCell.Value <> "" If ActiveCell.Value <> Valor Then ActiveCell.Offset(1, 0).Select Else Sheets("Altas").Select Range("H22:J22").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("D22").Select ActiveCell.FormulaR1C1 = "BORRADO" End If Wend Sheets("Listado").Select ActiveSheet.Protect Sheets("Altas").Select Range("D22").Select If ActiveCell.Value <> "BORRADO" Then
Range("D22").Select ActiveCell.FormulaR1C1 = "NO EXISTE" End If End Sub MODULO 2 (IMPRIMIR) Sub Imprimir() ' ' Imprimir Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+i ' Sheets("Listado").Select ActiveSheet.Unprotect Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("E1007").Select Selection.End(xlUp).Select Range(Selection, Selection.End(xlToLeft)).Select Range(Selection, Selection.End(xlUp)).Select Selection.PrintOut Copies:=1, Collate:=True ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True End Sub MODULO 3 (NUMEROS - LETRAS) Option Explicit 'Funcin programada inicialmente por Hctor Miguel (un gran experto en la materia) Function EnLetras(Valor, Optional ByVal Tipo As Byte = 1) As String 'funcion Principal ' If Not IsNumeric(Valor) Then EnLetras = " La referencia no es valor o... 'excede' la precisin !!!": Exit Function End If: Dim Moneda As String, Fracs As String, Cents As Integer If Int(Abs(Valor)) = 1 Then Moneda = " euro" Else Moneda = " euros" If Right(Letras(Abs(Int(Valor))), 6) = "illn " Or _ Right(Letras(Abs(Int(Valor))), 8) = "illones " Then Moneda = "de" & Moneda Cents = Application.Round(Abs(Valor) - Int(Abs(Valor)), 2) * 100 If Cents = 1 Then Fracs = " centimo" Else Fracs = " centimos" If Cents = 0 Then Fracs = "" Else Fracs = " con " & Letras(Cents) & Fracs EnLetras = Letras(Int(Abs(Valor))) & Moneda & Fracs If Valor < 0 Then EnLetras = "menos " & EnLetras If Tipo = 2 Then EnLetras = UCase(EnLetras) ' TODO EN MAYUSCULAS ' If Tipo = 3 Then EnLetras = StrConv(EnLetras, vbProperCase) ' Todo Como Nombre Propio ' If Tipo = 4 Then EnLetras = UCase(Left(EnLetras, 1)) & Mid(EnLetras, 2) 'Primera letra en mayuscula SOLAMENTE ' EnLetras = "(" & EnLetras & ")" End Function Private Function Letras(Valor) As String ' Funcin Auxiliar [uso 'exclusivo'de la funcion 'principal'] ' Select Case Int(Valor)
Case 0: Letras = "cero" Case 1: Letras = "un" Case 2: Letras = "dos" Case 3: Letras = "tres" Case 4: Letras = "cuatro" Case 5: Letras = "cinco" Case 6: Letras = "seis" Case 7: Letras = "siete" Case 8: Letras = "ocho" Case 9: Letras = "nueve" Case 10: Letras = "diez" Case 11: Letras = "once" Case 12: Letras = "doce" Case 13: Letras = "trece" Case 14: Letras = "catorce" Case 15: Letras = "quince" Case Is < 20: Letras = "dieci" & Letras(Valor - 10) Case 20: Letras = "veinte" Case Is < 30: Letras = "veinti" & Letras(Valor - 20) Case 30: Letras = "treinta" Case 40: Letras = "cuarenta" Case 50: Letras = "cincuenta" Case 60: Letras = "sesenta" Case 70: Letras = "setenta" Case 80: Letras = "ochenta" Case 90: Letras = "noventa" Case Is < 100: Letras = Letras(Int(Valor \ 10) * 10) & " y " & Letras(Valor Mod 10) Case 100: Letras = "cien" Case Is < 200: Letras = "ciento " & Letras(Valor - 100) Case 200, 300, 400, 600, 800: Letras = Letras(Int(Valor \ 100)) & "cientos" Case 500: Letras = "quinientos" Case 700: Letras = "setecientos" Case 900: Letras = "novecientos" Case Is < 1000: Letras = Letras(Int(Valor \ 100) * 100) & " " & Letras(Valor Mod 100) Case 1000: Letras = "mil" Case Is < 2000: Letras = "mil " & Letras(Valor Mod 1000) Case Is < 1000000: Letras = Letras(Int(Valor \ 1000)) & " mil" If Valor Mod 1000 Then Letras = Letras & " " & Letras(Valor Mod 1000) Case 1000000: Letras = "un milln " Case Is < 2000000: Letras = "un milln " & Letras(Valor Mod 1000000) Case Is < 1000000000000#: Letras = Letras(Int(Valor / 1000000)) & " millones " If (Valor - Int(Valor / 1000000) * 1000000) _ Then Letras = Letras & Letras(Valor - Int(Valor / 1000000) * 1000000) Case 1000000000000#: Letras = "un billn " Case Is < 2000000000000# Letras = "un billn " & Letras(Valor - Int(Valor / 1000000000000#) * 1000000000000#) Case Else: Letras = Letras(Int(Valor / 1000000000000#)) & " billones " If (Valor - Int(Valor / 1000000000000#) * 1000000000000#) _ Then Letras = Letras & " " & Letras(Valor - Int(Valor / 1000000000000#) * 1000000000000#) End Select End Function MODULO 4 (ALTAS) Sub Altas() '
' Altas Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+a ' Sheets("Listado").Select Range("H6").Select If ActiveCell.Value = 0 Then Sheets("Altas").Select Range("D6").Select ActiveCell.FormulaR1C1 = "YA EXISTE" Else ActiveSheet.Unprotect Range("C1007").Select Selection.End(xlUp).Select ActiveCell.Offset(1, 0).Select Sheets("Altas").Select Range("C6:E6").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("C6:E6").Select Selection.ClearContents Range("A1").Select End If End Sub
MODULO 5 (LISTADOS) Sub Modificar() ' ' Modificar Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+m ' Sheets("Listado").Select ActiveSheet.Unprotect Range("I6").Select Valor = ActiveCell.Value Range("C7").Select While ActiveCell.Value <> "" If ActiveCell.Value <> Valor Then ActiveCell.Offset(1, 0).Select Else
Sheets("Altas").Select Range("C14:E14").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("C14:E14").Select Selection.ClearContents Range("C14").Select End If Wend Sheets("Listado").Select ActiveSheet.Protect Sheets("Altas").Select Range("C14").Select If ActiveCell.Value <> "" Then Range("D14").Select ActiveCell.FormulaR1C1 = "NO EXISTE" End If End Sub
MODULO 6 (GUARDAR FACTURA) ---- VER OPCION DE. cmo modificar un mdulo? Range("K11").Select Application.CutCopyMode = False With Selection.Validation .Delete .Add Type:=xlValidateInputOnly, AlertStyle:=xlValidAlertStop, Operator _ :=xlBetween .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "Seleccione da" .ErrorMessage = "" .ShowInput = False .ShowError = False End With NombreArchivo = "C:\FACTUJA\" 'idea del Usuario arperez NArchivo = Format(Range("K11").Value, "") ActiveWorkbook.SaveAs NombreArchivo & NArchivo, , , , , , , , , , , False ActiveWindow.Close End Sub
MODULO 7 VACIO MODULO 8 IMPRIMIR - LIMPIAR CONTENIDO Y AADIR UN NMERO A LA FACTURA) Sub IMPRIME2() Application.ScreenUpdating = False Range("C17:C42").ClearContents Range("H17:H42").ClearContents Range("J17:J42").ClearContents Range("I3:L7").ClearContents Range("K11") = Range("K11").Value + 1 FormulaR1C1 = "=TODAY()" Range("K11").Select Application.ScreenUpdating = True End Sub
COMO MODIFICAR UN MDULO pulsamos a la vez las teclas Alf + F11 y nos sale la pantalla de Microsof visual Basic ( VER EJEMPLO) En este ejemplo, que tengo en pantalla, que es el mdulo 6 (GUARDAR FACTURA), podremos modificar la ruta donde se guardarn las facturas en nuestro ordenador. En este caso yo he creado en el disco C:\ una carpeta llamada FACTUJA, que ser donde una vez creada, se guardarn las facturas. Esto se puede modificar en funcin de cada usuario, si un usuario lo quiere guardar en otra carpeta, no hay mas que ir al modulo correspondiente (en este caso el mdulo 6), y modificar donde la ruta "C:\FACTUJA\" MUY IMPORTANTE, aadir la ruta pero SIN MODIFICAR comillas ( " ) o ( \ ), ya que si se modifica esto dejara de funcionar.
MODULO 1 (BAJA) MODULO 2 (IMPRIMIR) MODULO 3 (NUMEROS - LETRAS) MODULO 4 (ALTAS) MODULO 5 (LISTADOS) MODULO 6 (GUARDAR FACTURA) MODULO 7 VACIO MODULO 8 IMPRIMIR - LIMPIAR CONTENIDO Y AADIR UN NMERO A LA FACTURA) CMO MODIFICAR UN MDULO?
MODULO 1 (BAJA) Sub Baja() ' ' Baja Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+x ' Range("D22").Select ActiveCell.FormulaR1C1 = "" Sheets("Listado").Select ActiveSheet.Unprotect Range("J6").Select Valor = ActiveCell.Value Range("C7").Select While ActiveCell.Value <> "" If ActiveCell.Value <> Valor Then ActiveCell.Offset(1, 0).Select Else Sheets("Altas").Select Range("H22:J22").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("D22").Select ActiveCell.FormulaR1C1 = "BORRADO" End If Wend Sheets("Listado").Select ActiveSheet.Protect Sheets("Altas").Select Range("D22").Select If ActiveCell.Value <> "BORRADO" Then
Range("D22").Select ActiveCell.FormulaR1C1 = "NO EXISTE" End If End Sub MODULO 2 (IMPRIMIR) Sub Imprimir() ' ' Imprimir Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+i ' Sheets("Listado").Select ActiveSheet.Unprotect Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("E1007").Select Selection.End(xlUp).Select Range(Selection, Selection.End(xlToLeft)).Select Range(Selection, Selection.End(xlUp)).Select Selection.PrintOut Copies:=1, Collate:=True ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True End Sub MODULO 3 (NUMEROS - LETRAS) Option Explicit 'Funcin programada inicialmente por Hctor Miguel (un gran experto en la materia) Function EnLetras(Valor, Optional ByVal Tipo As Byte = 1) As String 'funcion Principal ' If Not IsNumeric(Valor) Then EnLetras = " La referencia no es valor o... 'excede' la precisin !!!": Exit Function End If: Dim Moneda As String, Fracs As String, Cents As Integer If Int(Abs(Valor)) = 1 Then Moneda = " euro" Else Moneda = " euros" If Right(Letras(Abs(Int(Valor))), 6) = "illn " Or _ Right(Letras(Abs(Int(Valor))), 8) = "illones " Then Moneda = "de" & Moneda Cents = Application.Round(Abs(Valor) - Int(Abs(Valor)), 2) * 100 If Cents = 1 Then Fracs = " centimo" Else Fracs = " centimos" If Cents = 0 Then Fracs = "" Else Fracs = " con " & Letras(Cents) & Fracs EnLetras = Letras(Int(Abs(Valor))) & Moneda & Fracs If Valor < 0 Then EnLetras = "menos " & EnLetras If Tipo = 2 Then EnLetras = UCase(EnLetras) ' TODO EN MAYUSCULAS ' If Tipo = 3 Then EnLetras = StrConv(EnLetras, vbProperCase) ' Todo Como Nombre Propio ' If Tipo = 4 Then EnLetras = UCase(Left(EnLetras, 1)) & Mid(EnLetras, 2) 'Primera letra en mayuscula SOLAMENTE ' EnLetras = "(" & EnLetras & ")" End Function Private Function Letras(Valor) As String ' Funcin Auxiliar [uso 'exclusivo'de la funcion 'principal'] ' Select Case Int(Valor)
Case 0: Letras = "cero" Case 1: Letras = "un" Case 2: Letras = "dos" Case 3: Letras = "tres" Case 4: Letras = "cuatro" Case 5: Letras = "cinco" Case 6: Letras = "seis" Case 7: Letras = "siete" Case 8: Letras = "ocho" Case 9: Letras = "nueve" Case 10: Letras = "diez" Case 11: Letras = "once" Case 12: Letras = "doce" Case 13: Letras = "trece" Case 14: Letras = "catorce" Case 15: Letras = "quince" Case Is < 20: Letras = "dieci" & Letras(Valor - 10) Case 20: Letras = "veinte" Case Is < 30: Letras = "veinti" & Letras(Valor - 20) Case 30: Letras = "treinta" Case 40: Letras = "cuarenta" Case 50: Letras = "cincuenta" Case 60: Letras = "sesenta" Case 70: Letras = "setenta" Case 80: Letras = "ochenta" Case 90: Letras = "noventa" Case Is < 100: Letras = Letras(Int(Valor \ 10) * 10) & " y " & Letras(Valor Mod 10) Case 100: Letras = "cien" Case Is < 200: Letras = "ciento " & Letras(Valor - 100) Case 200, 300, 400, 600, 800: Letras = Letras(Int(Valor \ 100)) & "cientos" Case 500: Letras = "quinientos" Case 700: Letras = "setecientos" Case 900: Letras = "novecientos" Case Is < 1000: Letras = Letras(Int(Valor \ 100) * 100) & " " & Letras(Valor Mod 100) Case 1000: Letras = "mil" Case Is < 2000: Letras = "mil " & Letras(Valor Mod 1000) Case Is < 1000000: Letras = Letras(Int(Valor \ 1000)) & " mil" If Valor Mod 1000 Then Letras = Letras & " " & Letras(Valor Mod 1000) Case 1000000: Letras = "un milln " Case Is < 2000000: Letras = "un milln " & Letras(Valor Mod 1000000) Case Is < 1000000000000#: Letras = Letras(Int(Valor / 1000000)) & " millones " If (Valor - Int(Valor / 1000000) * 1000000) _ Then Letras = Letras & Letras(Valor - Int(Valor / 1000000) * 1000000) Case 1000000000000#: Letras = "un billn " Case Is < 2000000000000# Letras = "un billn " & Letras(Valor - Int(Valor / 1000000000000#) * 1000000000000#) Case Else: Letras = Letras(Int(Valor / 1000000000000#)) & " billones " If (Valor - Int(Valor / 1000000000000#) * 1000000000000#) _ Then Letras = Letras & " " & Letras(Valor - Int(Valor / 1000000000000#) * 1000000000000#) End Select End Function MODULO 4 (ALTAS) Sub Altas() '
' Altas Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+a ' Sheets("Listado").Select Range("H6").Select If ActiveCell.Value = 0 Then Sheets("Altas").Select Range("D6").Select ActiveCell.FormulaR1C1 = "YA EXISTE" Else ActiveSheet.Unprotect Range("C1007").Select Selection.End(xlUp).Select ActiveCell.Offset(1, 0).Select Sheets("Altas").Select Range("C6:E6").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("C6:E6").Select Selection.ClearContents Range("A1").Select End If End Sub
MODULO 5 (LISTADOS) Sub Modificar() ' ' Modificar Macro ' Macro grabada el 28/09/2006 por Windows ' ' Acceso directo: CTRL+m ' Sheets("Listado").Select ActiveSheet.Unprotect Range("I6").Select Valor = ActiveCell.Value Range("C7").Select While ActiveCell.Value <> "" If ActiveCell.Value <> Valor Then ActiveCell.Offset(1, 0).Select Else
Sheets("Altas").Select Range("C14:E14").Select Selection.Copy Sheets("Listado").Select ActiveSheet.Paste Range("C7:E1006").Select Application.CutCopyMode = False Selection.Sort Key1:=Range("C7"), Order1:=xlAscending, Header:=xlNo, _ OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _ DataOption1:=xlSortNormal Range("C7:E1006").Select Selection.Locked = True Selection.FormulaHidden = False ActiveSheet.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True Sheets("Altas").Select Range("C14:E14").Select Selection.ClearContents Range("C14").Select End If Wend Sheets("Listado").Select ActiveSheet.Protect Sheets("Altas").Select Range("C14").Select If ActiveCell.Value <> "" Then Range("D14").Select ActiveCell.FormulaR1C1 = "NO EXISTE" End If End Sub
MODULO 6 (GUARDAR FACTURA) ---- VER OPCION DE. cmo modificar un mdulo? Range("K11").Select Application.CutCopyMode = False With Selection.Validation .Delete .Add Type:=xlValidateInputOnly, AlertStyle:=xlValidAlertStop, Operator _ :=xlBetween .IgnoreBlank = True .InCellDropdown = True .InputTitle = "" .ErrorTitle = "" .InputMessage = "Seleccione da" .ErrorMessage = "" .ShowInput = False .ShowError = False End With Poner ruta donde se desea guardar la factura OJO, no modicar NI borrar (") o \ NombreArchivo = "C:\FACTUJA\" 'idea del Usuario arperez NArchivo = Format(Range("K11").Value, "") ActiveWorkbook.SaveAs NombreArchivo & NArchivo, , , , , , , , , , , False ActiveWindow.Close End Sub
MODULO 7 VACIO MODULO 8 IMPRIMIR - LIMPIAR CONTENIDO Y AADIR UN NMERO A LA FACTURA) Sub IMPRIME2() Application.ScreenUpdating = False Range("C17:C42").ClearContents Range("H17:H42").ClearContents Range("J17:J42").ClearContents Range("I3:L7").ClearContents Range("K11") = Range("K11").Value + 1 FormulaR1C1 = "=TODAY()" Range("K11").Select Application.ScreenUpdating = True End Sub
COMO MODIFICAR UN MDULO pulsamos a la vez las teclas Alf + F11 y nos sale la pantalla de Microsof visual Basic ( VER EJEMPLO) En este ejemplo, que tengo en pantalla, que es el mdulo 6 (GUARDAR FACTURA), podremos modificar la ruta donde se guardarn las facturas en nuestro ordenador. En este caso yo he creado en el disco C:\ una carpeta llamada FACTUJA, que ser donde una vez creada, se guardarn las facturas. Esto se puede modificar en funcin de cada usuario, si un usuario lo quiere guardar en otra carpeta, no hay mas que ir al modulo correspondiente (en este caso el mdulo 6), y modificar donde la ruta "C:\FACTUJA\" MUY IMPORTANTE, aadir la ruta pero SIN MODIFICAR comillas ( " ) o ( \ ), ya que si se modifica esto dejara de funcionar.
MOTOLAVADO MOTONET
Gregorio Ramrez Snchez 46.543.936-D C/ Joaquim Ruyra, 18-22 Badalona
IMPRIME 2 COPIAS
CANT.
DESCRIPCIN
N MATRICULA BASTIDOR
PRECIO
TOTAL FACTURA
ORDEN DE TRANSFERENCIA TRANSMITIDA POR FAX (conservar el original y entregar a la oficina con periodicidad mensual)
LA CAIXA
A/At.:
Cuenta de Cargo: Caixa Importe: --15,000.00-(quince mil euros) Cuenta de Abono IBAN (CCC): 1006 1234 12 9876559303 Beneficiario pepito palote Concepto:
En nombre y representacin de la mercantil ordenante, solicito la ejecucin de la transferencia indicada. Asimismo autorizo me informen por carta de la liquidacin de la operacin y la correspondiente comisin adeudada.
Fdo.:
MODIFICAR Poner nmero de cuenta segn el primer ejemplo, dejar el nombre del banco al princio para distinguir el banco
CUENTAS BANCARIAS NOMBRE DEL BANCO / CAJA N de Cuenta - Poner delante el nombre del Bco.
BSCH CAJA RURAL CAJA DUERO CAIXA CATALUA CAJA ESPAA BANCO POPULAR CAJA BADAJOZ CAJA DE AVILA LA CAIXA BANKINTER CAJA MAR BANCO GALLEGO BANCO PASTOR CAJA LABORAL CAJA MADRID BBVA Etc.
BSCH-0000 0000 00 1234567899 C.RuralC.Duero Caixa-Cata. C.EspaaB.PopularC.BadajozC.AvilaCaixa BankinterC.Mar B.GallegoB.PastorC.LaboralC. Madrid BBVA Etc
ir a Transferencias
N de Fax
A/At.:
983400300 Pedro 983400301 PEPITO 12345689 983400303 983400304 983400305 983400306 983400307 983400308 983400309 983400310 983400311 983400312 983400313 983400314 983400315 983400316 983400317 983400318 983400319
BSCH CAJA RURAL CAJA DUERO CAIXA CATALUA CAJA ESPAA BANCO POPULAR CAJA BADAJOZ CAJA DE AVILA LA CAIXA BANKINTER CAJA MAR BANCO GALLEGO BANCO PASTOR CAJA LABORAL CAJA MADRID BBVA Etc.
Por este recibo pagar Usted al vencimiento expresado a: MARTIN SANCHEZ LORENZO LA CANTIDAD DE: (cuarenta y ocho mil cuatrocientos setenta y un euros)
EL PUEBLO
400999
LEON
REGISTRO DE RECIBOS EMITIDOS N Recibo Fecha Recibo Nombre Cliente 1 08-09-10 LOPEZ RUIZ MARIA 324 15-09-10 Julio Perez sanches Cliente Fecha Vto. 4000003 15-12-10 43022 15-11-10
N de Recibo
Lugar de Libramiento
IMPORTE
21
Fecha de libramiento:
CORDOVILLA 1-12-2011
Fecha de Vencimiento
1,398.76 1-12-2011
LA CANTIDAD DE:
EN EL DOMICILIO DE PAGO SIGUIENTE: Cdigo de Cuenta Caja Duero. 2104 0085 05 3000000272
4300376
AGRADECIMIENTOS
www.jesusferrer.es, correo@jesusferrer.es
A Jess Ferrer por que tiene una weeb muy completa y con muchas plantillas que pone a disposicin de todos los internautas de forma gratuita, y de forma desinteresada se ofrece para solucional cualquier consulta / duda. (Felicidades) El rojo - Foro de la weeb ayuda excel (experto en Excel) Luis super moderador de la weeb ayuda excel (uno de los Bos de la weeb) Logroastur tambin de la weeb de ayuda excel. http://www.ayudaexcel.com/ Enhorabuena a todos Moderador-Supermoderador y Foreros.
Todos ellos algunos sin saber (Jess Ferrer), y otros como los que menciono (que les ped co me han ayudado a la hora de configurar / adaptar este archivo de forma rpida y desinteres
Mencin especial a aquellos que tambin me ayudaron dentro de la weeb ayuda excel, y que no recuerdo el nombre (mil disculpas).
Tengo que decir que si hay algn error, el nico responsable soy yo, por todo ello este archiv ser didctico, si lo utilizan para contabilidad y se pierde por cualquier motivo informacin, yo no me hago responsable.
Todo esto lo he hecho para aprender un poquito ms, ya que he ido adaptando un poquito de y otro poquito que se yo, para ir viendo el funcionamiento de determinadas frmulas y como no, para adaptar "frmulas" que puedo utilizar en el trabajo.
Saludos Joansare
CIMIENTOS
tros como los que menciono (que les ped consejo), r este archivo de forma rpida y desinteresada.
responsable soy yo, por todo ello este archivo e pierde por cualquier motivo informacin, yo
ms, ya que he ido adaptando un poquito de cada uno namiento de determinadas frmulas