{"id":281,"date":"2013-03-01T04:30:43","date_gmt":"2013-03-01T10:30:43","guid":{"rendered":"http:\/\/aplicaexcelcontable.com\/blog\/?p=281"},"modified":"2024-12-17T12:31:41","modified_gmt":"2024-12-17T18:31:41","slug":"crear-tu-factura-de-ventas-final","status":"publish","type":"post","link":"https:\/\/aplicaexcelcontable.com\/blog\/crear-tu-factura-de-ventas-final.html","title":{"rendered":"Como Crear Tu Factura de Ventas Final"},"content":{"rendered":"<h1 style=\"text-align: center;\">Como crear tu Factura de Ventas Final<\/h1>\n<p style=\"text-align: justify;\">Comencemos con el articulo <strong>Como crear tu Factura de Ventas Final.&nbsp;<\/strong><\/p>\n<p style=\"text-align: justify;\"><strong><\/strong>Pero antes que nada te invito a que leas el articulo anterior, para eso tan solo pulsa clic en el bot\u00f3n:<\/p>\n<p style=\"text-align: justify;\">Hoy es el d\u00eda en el que tendr\u00e1s un <strong>Sistema de Facturaci\u00f3n<\/strong> gratis y creado por ti. Si aun no has le\u00eddo los art\u00edculos anteriores adelante hoy es el d\u00eda.<\/p>\n<p style=\"text-align: justify;\">Para comenzar con este articulo vamos a crear un bot\u00f3n que nos permita imprimir la Factura y guardar los datos en la Base de Datos.<\/p>\n<h2 style=\"text-align: center;\">Macro que Imprime y Limpia la Factura &#8211; Factura de Ventas Final<\/h2>\n<p style=\"text-align: justify;\">Primeramente, quiero compartir la Macro que utilizaras para Imprimir y Limpiar la Factura de ventas final.<\/p>\n<p style=\"text-align: justify;\">La siguiente imagen te muestra el c\u00f3digo:<\/p>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"439\" height=\"117\" title=\"Codigo de la Macro\" data-id=\"40542\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo-de-la-Macro.png\" style=\"\"><\/span><\/p>\n<p style=\"text-align: justify;\">Bien, estos c\u00f3digos los vamos a copiar dentro del Modulo Uno, del proyecto \u00abFacturas de Venta\u00bb suponiendo que tu archivo tiene ese nombre.<\/p>\n<p style=\"text-align: justify;\">Por lo tanto, si tiene otro nombre no importa, lo que queremos es colocar dentro de un modulo esos c\u00f3digos, veamos los pasos:<\/p>\n<ul>\n<li style=\"\"><span>Vamos a pulsar Alt + F11 para abrir Visual Basic For Aplication (VBA) la ventana tiene que ser igual as\u00ed a como muestra la imagen:<\/span><\/li>\n<\/ul>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"593\" height=\"282\" title=\"Visual Basic\" data-id=\"40545\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Visual-Basic.png\" style=\"aspect-ratio: auto 593 \/ 282;\" data-width=\"593\" data-height=\"282\" data-init-width=\"593\" data-init-height=\"282\"><\/span><\/p>\n<ul>\n<li style=\"\"><span>Continuando, en la parte izquierda se muestra un proyecto, la desplegamos e insertamos un modulo, para insertar modulo nos ubicamos en la pesta\u00f1a \u00abInsertar\u00bb y seleccionamos \u00abM\u00f3dulo\u00bb, v\u00e9ase la imagen:<\/span><\/li>\n<\/ul>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"340\" height=\"161\" title=\"Modulo\" data-id=\"40547\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Modulo.png\" style=\"aspect-ratio: auto 340 \/ 161;\" data-width=\"340\" data-height=\"161\" data-init-width=\"340\" data-init-height=\"161\"><\/span><\/p>\n<ul>\n<li style=\"\"><span>Y una vez que ya hemos insertado el modulo, se mostrara dentro del proyecto, dentro de una carpeta llamada Modulo, desplegamos esa carpeta y damos doble clic sobre Modulo1 y se nos &nbsp;abre una ventana o espacio en blanco donde tu podr\u00e1s copiar el c\u00f3digo de la Tabla1, v\u00e9ase la imagen:<\/span><\/li>\n<\/ul>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"483\" height=\"236\" title=\"Modulo1\" data-id=\"40549\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Modulo1.png\" style=\"aspect-ratio: auto 483 \/ 236;\" data-width=\"483\" data-height=\"236\" data-init-width=\"483\" data-init-height=\"236\"><\/span><\/p>\n<ul>\n<li style=\"\"><span>Tambi\u00e9n, vamos a copiar el c\u00f3digo de la Tabla1 en el espacio en blanco y queda de la siguiente manera, v\u00e9ase la imagen:<\/span><\/li>\n<\/ul>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"596\" height=\"211\" title=\"Codigo1\" data-id=\"40551\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo1.png\" style=\"\"><\/span><\/p>\n<ul>\n<li style=\"\"><span>Pulsamos guardar y cerramos VBA (Visual Basic para Aplicaciones).<\/span><\/li>\n<\/ul>\n<h2 style=\"text-align: center;\">Creando bot\u00f3n para imprimir y guardar los datos &#8211; Factura de Ventas Final<\/h2>\n<p style=\"text-align: justify;\">Para comenzar, vamos a crear un bot\u00f3n de comando, para insertarlo nos ubicamos en la pesta\u00f1a \u00abProgramador\u00bb (Office 2010,2016,2019 o 365) o \u00abDesarrollador\u00bb (Office 2013), secci\u00f3n \u00abControles\u00bb, desplegamos el comando \u00abInsertar\u00bb y seleccionamos \u00abBot\u00f3n Comando\u00bb (Esta dentro de controles ActiveX).<\/p>\n<p style=\"text-align: justify;\">A continuaci\u00f3n, te invito a crear paso a paso tu<strong> Sistema de Gesti\u00f3n &#8211; Facturaci\u00f3n e Inventario<\/strong>, para eso tan solo <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/curso-como-crear-tu-sgfi\" target=\"_blank\" style=\"outline: none;\"><span style=\"color: rgb(0, 23, 255);\"><strong>pulsa clic&nbsp;<\/strong><\/span><strong>aqu\u00ed<\/strong><\/a>.<\/p>\n<p style=\"text-align: justify;\">Una vez seleccionado nos ubicamos a la mitad de la celda A2 y presionando el bot\u00f3n primario (Izquierdo) del mouse empezamos a dibujar el bot\u00f3n terminando hasta la mitad de la celda C2, te pido que veas la imagen:<\/p>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"574\" height=\"289\" title=\"Imprimir y Guardar\" data-id=\"40605\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Imprimir-y-Guardar-1.png\" style=\"\"><\/span><\/p>\n<p style=\"text-align: justify;\">Y si notas yo ya le puse nombre al bot\u00f3n, pero en tu caso aparecer\u00e1 por defecto el nombre Commandbutton1, ese nombre lo cambiaremos despu\u00e9s de agregarle el c\u00f3digo al bot\u00f3n.<\/p>\n<h3 style=\"text-align: center;\">C\u00f3digo que graba los datos de la factura en la Hoja Base &#8211; Factura de Ventas Final<\/h3>\n<p style=\"text-align: justify;\">Entonces, as\u00ed a como est\u00e1 tu bot\u00f3n est\u00e1 activado en modo dise\u00f1o, le damos clic derecho, y se nos presenta varias opciones, seleccionamos \u00abVer c\u00f3digo\u00bb y se nos abre VBA. V\u00e9ase la imagen:<\/p>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"590\" height=\"210\" title=\"Commandbutton1\" data-id=\"40608\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Commandbutton1-1.png\" style=\"\"><\/span><\/p>\n<p style=\"text-align: justify;\">Para continuar, nos ubicamos en medio de las dos palabras y copiamos el siguiente c\u00f3digo:<\/p>\n<p style=\"text-align: justify;\">&#8216; imprimir<\/p>\n<p style=\"text-align: justify;\">Call Imprimir<\/p>\n<p style=\"text-align: justify;\">&#8216; rutina que graba la factura en hoja base<\/p>\n<p style=\"text-align: justify;\">&#8216; se busca la primer fila libre en hoja Fact<\/p>\n<p style=\"text-align: justify;\">filalibre = Sheets (\u00abBase\u00bb) . Range (\u00abA65536\u00bb) . End (xlUp) . Row + 1<\/p>\n<p style=\"text-align: justify;\">&#8216; se pasar\u00e1n los datos desde la 1er fila de items<\/p>\n<p style=\"text-align: justify;\">ActiveSheet . Range (\u00abA10\u00bb) . Select<\/p>\n<p style=\"text-align: justify;\">fila = 10<\/p>\n<p style=\"text-align: justify;\">While ActiveCell . Value &lt;&gt; \u00ab\u00bb<\/p>\n<p style=\"text-align: justify;\">&#8216; copiamos datos fijos ajustando nro col<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 2) = ActiveSheet . Range (\u00abF4\u00bb) &nbsp;&#8216; NRO FACT<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 1) = ActiveSheet . Range (\u00abB4\u00bb) &nbsp;&#8216; FECHA<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 3) = ActiveSheet . Range (\u00abC6\u00bb) &nbsp;&#8216; CLIENTE<\/p>\n<p style=\"text-align: justify;\">&#8216; otros datos del encabezado<\/p>\n<p style=\"text-align: justify;\">&#8216; copiamos lista de items<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 4) = ActiveCell . Offset (1, 0) &#8216; CANT<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 5) = ActiveCell . Offset (0, 1) &#8216; COD PROD<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 6) = ActiveCell . Offset (0, 2) &#8216; PROD<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 7) = ActiveCell . Offset (0, 3) &#8216; DESCRIPC<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 8) = ActiveCell . Offset (0, 4) &#8216; PRECIO UNIT<\/p>\n<p style=\"text-align: justify;\">Sheets (\u00abBase\u00bb) . Cells (filalibre, 9) = ActiveCell . Offset (0, 5) &#8216; PRECIO TOT<\/p>\n<p style=\"text-align: justify;\">&#8216; incremento la variable fila para repetir el bucle<\/p>\n<p style=\"text-align: justify;\">filalibre = filalibre + 1<\/p>\n<p style=\"text-align: justify;\">&#8216; repito el bucle para las cantidades siguientes<\/p>\n<p style=\"text-align: justify;\">ActiveCell . Offset (1, 0) .Select<\/p>\n<p style=\"text-align: justify;\">Wend<\/p>\n<p style=\"text-align: justify;\">&#8216; una ves concluida la copia debiera limpiarse el form de datos<\/p>\n<p style=\"text-align: justify;\">&#8216; para el ingreso de nueva factura<\/p>\n<p style=\"text-align: justify;\">Call limpieza<\/p>\n<p style=\"text-align: justify;\">End sub<\/p>\n<p style=\"text-align: justify;\">Bien, una vez que ya has copiado el c\u00f3digo, guardas y cierras VBA, te dejo una imagen para que observes que lo has copiado correctamente, el c\u00f3digo copiado debe estar tal a como aparece en la imagen:<\/p>\n<h3 style=\"text-align: center;\">Ejemplo del C\u00f3digo a copiar &#8211; Factura de Ventas Final:<\/h3>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"618\" height=\"538\" title=\"Codigo a copiar\" data-id=\"40610\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo-a-copiar.png\" style=\"\"><\/span><\/p>\n<p style=\"text-align: justify;\">Ohhh se me olvida un punto importante, y me refiero al nombre del bot\u00f3n \u00abComando\u00bb. Activamos el modo dise\u00f1o del comando y le damos clic derecho, seleccionamos \u00abVer c\u00f3digo\u00bb.<\/p>\n<p style=\"text-align: justify;\">Esto nos lleva nuevamente a Visual Basic para Aplicaci\u00f3n, entonces ya estando dentro de VBA en el panel que se encuentra a la izquierda, podemos ver que la opci\u00f3n \u00abPropiedades\u00bb siempre esta activa.<\/p>\n<p style=\"text-align: justify;\">Pero en caso de no estar activo, pulsamos F4 y aparece la ventana Propiedades del CommandButton1. Te dejo una imagen como ejemplo para que la veas:<\/p>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"164\" height=\"538\" title=\"Propiedades del Commandbutton1\" data-id=\"40613\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Propiedades-del-Commandbutton1.png\" style=\"\"><\/span><\/p>\n<p style=\"text-align: justify;\">Una vez activo las propiedades del bot\u00f3n commandButton1, buscamos dentro de las propiedades en la parte izquierda &nbsp;la palabra \u00abCaption\u00bb.<\/p>\n<p style=\"text-align: justify;\">En la parte derecha tiene escrito CommandButton1, lo borramos y escribimos \u00abImprimir y Guardar\u00bb, guardamos y cerramos VBA.<\/p>\n<p style=\"text-align: justify;\">Muy bien! Podemos observar que ya cambio el nombre de tu bot\u00f3n ahora dice \u00abImprimir y Guardar\u00bb. Felicidades ahora solo nos queda probar si todo funciona bien.&nbsp;<\/p>\n<p style=\"text-align: justify;\">Pero antes de que hagas la prueba te regalo una imagen de la Propiedad Caption la cual esta resaltado en azul:<\/p>\n<h3 style=\"text-align: center;\">Ejemplo de Factura de Ventas Final<\/h3>\n<p><span style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" alt=\"Factura de Ventas Final\" width=\"151\" height=\"179\" title=\"Propiedades Caption\" data-id=\"40615\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Propiedades-Caption.png\" style=\"aspect-ratio: auto 151 \/ 179;\" data-width=\"151\" data-height=\"179\" data-init-width=\"151\" data-init-height=\"179\"><\/span><\/p>\n<p style=\"text-align: justify;\">Estupendo! Hemos concluido ahora solo digita una cantidad, un c\u00f3digo, selecciona un nombre, digita la Fecha (Si no quieres digitar Fecha solo escribe dentro de la celda B4 la siguiente f\u00f3rmula&nbsp;<strong>=Hoy()<\/strong><strong>)<\/strong>.<\/p>\n<p style=\"text-align: justify;\">Y pulsa el bot\u00f3n \u00abImprimir y Guardar\u00bb &nbsp;y veras como se imprimir\u00e1 y se guardara los datos.<\/p>\n<p style=\"text-align: justify;\">No solo eso el n\u00famero de Factura aumentara y quedara autom\u00e1ticamente una nueva Factura limpia, lista para digitar nuevos datos.<\/p>\n<p style=\"text-align: justify;\">A continuaci\u00f3n, te invito a crear paso a paso tu <strong>Sistema de Gesti\u00f3n &#8211; Facturaci\u00f3n e Inventario en Excel<\/strong>, para eso tan solo <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/curso-como-crear-tu-sgfi\" target=\"_blank\" style=\"outline: none;\"><span style=\"color: rgb(0, 23, 255);\"><strong>pulsa clic&nbsp;<\/strong><\/span><strong>aqu\u00ed<\/strong><\/a>.<\/p>\n<p style=\"text-align: justify;\">Si te gusto el tema de hoy comp\u00e1rtelo con tus amigos de <a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\" style=\"outline: none;\" rel=\"noopener\">Facebook,<\/a> pulsando clic en el bot\u00f3n compartir:<\/p>\n<p style=\"text-align: justify;\">Y si aun no estas suscrito en nuestro canal, tan solo pulsa clic en el bot\u00f3n rojo para acceder a todos los v\u00eddeos nuevos que subimos cada semana:<\/p>\n<h1><strong>S\u00edguenos en:<\/strong><\/h1>\n<p><a href=\"https:\/\/www.facebook.com\/aplicaexcecontable\" target=\"_blank\" rel=\"  noopener\"><\/a><a href=\"http:\/\/www.youtube.com\/user\/excelycontabilidad?sub_confirmation=1\" target=\"_blank\" rel=\"  noopener\"><\/a><\/p>\n<h6 style=\"\">Para Finalizar:<\/h6>\n<p style=\"text-align: justify;\">Me gustar\u00eda saber que piensas de este articulo \u00abComo crear tu Factura de Ventas Final\u00bb, por lo tanto, d\u00e9jame tu comentario con dudas, criticas constructivas y sugerencias.<\/p>\n<p style=\"\">Cualquier duda o pregunta, puedes escribirme directamente en la<span style=\"--tcb-text-highlight-color: rgb(237, 243, 13) !important;\">&nbsp;<\/span><a href=\"#comentario\" style=\"outline: none;\"><span style=\"--tcb-text-highlight-color: rgb(237, 243, 13) !important;\">secci\u00f3n de comentarios<\/span><\/a>, en la <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/contacto\" target=\"_blank\" style=\"outline: none;\"><span style=\"--tcb-text-highlight-color: rgb(231, 100, 224) !important;\" data-text-highlight=\"bubble\">pagina del chat<\/span><\/a>, directamente en <span style=\"--tcb-text-highlight-color: rgb(30, 184, 76) !important;\">whatsapp<\/span> o bien al correo electr\u00f3nico rogerperez@aplicaexcelcontable.com.<span style=\"--tcb-text-highlight-color: transparent !important;\"><\/span><\/p>\n<p style=\"\">Te saluda,<span style=\"--tcb-text-highlight-color: transparent !important;\"><\/span><\/p>\n<p style=\"\"><strong>Roger Perez \u2013 Aplica Excel Contable<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como crear tu Factura de Ventas Final Comencemos con el articulo Como crear tu Factura de Ventas Final.&nbsp; Pero antes que nada te invito a que leas el articulo anterior, para eso tan solo pulsa clic en el bot\u00f3n: Hoy es el d\u00eda en el que tendr\u00e1s un Sistema de Facturaci\u00f3n gratis y creado por [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":40551,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","tve_updated_post":"<div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h1\" data-css=\"tve-u-18bef3cd619\" style=\"\"><h1 style=\"text-align: center;\" class=\"\" data-css=\"tve-u-18bef3b781a\">Como crear tu Factura de Ventas Final<\/h1><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-193bb65e340\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161c00439f6\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161c00439f8\" style=\"text-align: justify;\">Comencemos con el articulo <strong>Como crear tu Factura de Ventas Final.&nbsp;<\/strong><\/p><p data-css=\"tve-u-161c00439f8\" style=\"text-align: justify;\"><strong><\/strong>Pero antes que nada te invito a que leas el articulo anterior, para eso tan solo pulsa clic en el bot\u00f3n:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-button thrv-button-v2 tcb-local-vars-root\" data-css=\"tve-u-18bfe340ace\" style=\"\" data-button-size-d=\"m\">\n\t<div class=\"thrive-colors-palette-config\" style=\"display: none !important\">__CONFIG_colors_palette__{\"active_palette\":0,\"config\":{\"colors\":{\"62516\":{\"name\":\"Main Accent\",\"parent\":-1}},\"gradients\":[]},\"palettes\":[{\"name\":\"Default Palette\",\"value\":{\"colors\":{\"62516\":{\"val\":\"rgb(0, 255, 0)\"}},\"gradients\":[]}}]}__CONFIG_colors_palette__<\/div>\n\t<a href=\"https:\/\/aplicaexcelcontable.com\/blog\/como-crear-tu-factura-de-ventas-no3-programar-en-excel.html\" class=\"tcb-button-link tcb-plain-text\" style=\"\" target=\"_blank\">\n\t\t<span class=\"tcb-button-texts\"><span class=\"tcb-button-text thrv-inline-text\"><strong><span style=\"font-size: 20px !important;\" data-css=\"tve-u-18bfe340acf\">Pulsa clic aqu\u00ed P\/Ver el articulo anterior \u2192<\/span> <\/strong><\/span><\/span>\n\t<\/a>\n<\/div><div class=\"thrv_wrapper thrv_custom_html_shortcode\"><div style=\"position:relative;height:0;padding-bottom:56.25%\"><iframe class=\"sproutvideo-player\" src=\"https:\/\/videos.sproutvideo.com\/embed\/a49ddab51615e1c12c\/13f6d98e486e1bb6\" style=\"position:absolute;width:100%;height:100%;left:0;top:0\" frameborder=\"0\" allowfullscreen=\"\" referrerpolicy=\"no-referrer-when-downgrade\" title=\"Video Player\"><\/iframe><\/div><div class=\"tve_iframe_cover\"><\/div><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bf78d3d2\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bf78d3d5\" style=\"text-align: justify;\">Hoy es el d\u00eda en el que tendr\u00e1s un <strong>Sistema de Facturaci\u00f3n<\/strong> gratis y creado por ti. Si aun no has le\u00eddo los art\u00edculos anteriores adelante hoy es el d\u00eda.<\/p><p data-css=\"tve-u-161bf78d3d5\" style=\"text-align: justify;\">Para comenzar con este articulo vamos a crear un bot\u00f3n que nos permita imprimir la Factura y guardar los datos en la Base de Datos.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h3\" data-css=\"tve-u-18bef5a13ad\" style=\"\"><h2 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-18bef59ad6f\">Macro que Imprime y Limpia la Factura - Factura de Ventas Final<\/h2><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-18bef5a40bd\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bf861600\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bf861601\" style=\"text-align: justify;\">Primeramente, quiero compartir la Macro que utilizaras para Imprimir y Limpiar la Factura de ventas final.<\/p><p data-css=\"tve-u-161bf861601\" style=\"text-align: justify;\">La siguiente imagen te muestra el c\u00f3digo:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16873d40722\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40542\" alt=\"Factura de Ventas Final\" width=\"439\" height=\"117\" title=\"Codigo de la Macro\" data-id=\"40542\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo-de-la-Macro.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bf8baa57\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bf8baa5a\" style=\"text-align: justify;\">Bien, estos c\u00f3digos los vamos a copiar dentro del Modulo Uno, del proyecto \"Facturas de Venta\" suponiendo que tu archivo tiene ese nombre.<\/p><p data-css=\"tve-u-161bf8baa5a\" style=\"text-align: justify;\">Por lo tanto, si tiene otro nombre no importa, lo que queremos es colocar dentro de un modulo esos c\u00f3digos, veamos los pasos:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-color=\"rgb(0, 0, 0)\" data-css=\"tve-u-161bf8e6f7b\" style=\"\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-18bef5add66\" style=\"\"><div class=\"tcb-styled-list-icon\"><div class=\"thrv_wrapper thrv_icon tve_no_drag tcb-no-delete tcb-no-clone tcb-icon-inherit-style\" data-css=\"tve-u-161bf8e55aa\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-name=\"checkcheck\">\n\n<path d=\"M29.333 10.267c0 0.4-0.133 0.8-0.533 1.2l-14.8 14.8c-0.267 0.267-0.667 0.4-1.067 0.4s-0.933-0.133-1.2-0.533l-2.4-2.267-6.267-6.267c-0.267-0.267-0.4-0.667-0.4-1.2s0.133-0.8 0.533-1.2l2.4-2.4c0.267-0.133 0.667-0.4 1.067-0.4s0.8 0.133 1.2 0.533l5.067 5.067 11.2-11.333c0.267-0.267 0.667-0.533 1.2-0.533 0.4 0 0.8 0.133 1.2 0.533l2.4 2.4c0.267 0.267 0.4 0.667 0.4 1.2z\"><\/path>\n<\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete\" data-css=\"tve-u-16873d83dea\"><div style=\"text-align: justify;\">Vamos a pulsar Alt + F11 para abrir Visual Basic For Aplication (VBA) la ventana tiene que ser igual as\u00ed a como muestra la imagen:<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16873ebbc6c\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40545\" alt=\"Factura de Ventas Final\" width=\"593\" height=\"282\" title=\"Visual Basic\" data-id=\"40545\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Visual-Basic.png\" style=\"aspect-ratio: auto 593 \/ 282;\" data-width=\"593\" data-height=\"282\" data-init-width=\"593\" data-init-height=\"282\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-css=\"tve-u-161bf963c9b\" style=\"\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-16874102a69\" style=\"\"><div class=\"tcb-styled-list-icon\"><div class=\"thrv_wrapper thrv_icon tve_no_drag tcb-no-delete tcb-no-clone tcb-icon-inherit-style\" data-css=\"tve-u-161bf961f47\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-name=\"checkcheck\">\n\n<path d=\"M29.333 10.267c0 0.4-0.133 0.8-0.533 1.2l-14.8 14.8c-0.267 0.267-0.667 0.4-1.067 0.4s-0.933-0.133-1.2-0.533l-2.4-2.267-6.267-6.267c-0.267-0.267-0.4-0.667-0.4-1.2s0.133-0.8 0.533-1.2l2.4-2.4c0.267-0.133 0.667-0.4 1.067-0.4s0.8 0.133 1.2 0.533l5.067 5.067 11.2-11.333c0.267-0.267 0.667-0.533 1.2-0.533 0.4 0 0.8 0.133 1.2 0.533l2.4 2.4c0.267 0.267 0.4 0.667 0.4 1.2z\"><\/path>\n<\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete\" data-css=\"tve-u-16873f04bc0\"><div style=\"text-align: justify;\">Continuando, en la parte izquierda se muestra un proyecto, la desplegamos e insertamos un modulo, para insertar modulo nos ubicamos en la pesta\u00f1a \"Insertar\" y seleccionamos \"M\u00f3dulo\", v\u00e9ase la imagen:<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16874072442\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40547\" alt=\"Factura de Ventas Final\" width=\"340\" height=\"161\" title=\"Modulo\" data-id=\"40547\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Modulo.png\" style=\"aspect-ratio: auto 340 \/ 161;\" data-width=\"340\" data-height=\"161\" data-init-width=\"340\" data-init-height=\"161\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-color=\"rgb(0, 0, 0)\" data-css=\"tve-u-161bf9b6ee3\" style=\"\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-16874111060\" style=\"\"><div class=\"tcb-styled-list-icon\"><div class=\"thrv_wrapper thrv_icon tve_no_drag tcb-no-delete tcb-no-clone tcb-icon-inherit-style\" data-css=\"tve-u-161bf9b58c2\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-name=\"checkcheck\">\n\n<path d=\"M29.333 10.267c0 0.4-0.133 0.8-0.533 1.2l-14.8 14.8c-0.267 0.267-0.667 0.4-1.067 0.4s-0.933-0.133-1.2-0.533l-2.4-2.267-6.267-6.267c-0.267-0.267-0.4-0.667-0.4-1.2s0.133-0.8 0.533-1.2l2.4-2.4c0.267-0.133 0.667-0.4 1.067-0.4s0.8 0.133 1.2 0.533l5.067 5.067 11.2-11.333c0.267-0.267 0.667-0.533 1.2-0.533 0.4 0 0.8 0.133 1.2 0.533l2.4 2.4c0.267 0.267 0.4 0.667 0.4 1.2z\"><\/path>\n<\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete\" data-css=\"tve-u-168740873ea\"><div style=\"text-align: justify;\">Y una vez que ya hemos insertado el modulo, se mostrara dentro del proyecto, dentro de una carpeta llamada Modulo, desplegamos esa carpeta y damos doble clic sobre Modulo1 y se nos &nbsp;abre una ventana o espacio en blanco donde tu podr\u00e1s copiar el c\u00f3digo de la Tabla1, v\u00e9ase la imagen:<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-168740d03ff\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40549\" alt=\"Factura de Ventas Final\" width=\"483\" height=\"236\" title=\"Modulo1\" data-id=\"40549\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Modulo1.png\" style=\"aspect-ratio: auto 483 \/ 236;\" data-width=\"483\" data-height=\"236\" data-init-width=\"483\" data-init-height=\"236\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-color=\"rgb(0, 0, 0)\" data-css=\"tve-u-161bf9f3e84\" style=\"\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-168740f595b\" style=\"\"><div class=\"tcb-styled-list-icon\"><div class=\"thrv_wrapper thrv_icon tve_no_drag tcb-no-delete tcb-no-clone tcb-icon-inherit-style\" data-css=\"tve-u-161bf9f247f\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-name=\"checkcheck\">\n\n<path d=\"M29.333 10.267c0 0.4-0.133 0.8-0.533 1.2l-14.8 14.8c-0.267 0.267-0.667 0.4-1.067 0.4s-0.933-0.133-1.2-0.533l-2.4-2.267-6.267-6.267c-0.267-0.267-0.4-0.667-0.4-1.2s0.133-0.8 0.533-1.2l2.4-2.4c0.267-0.133 0.667-0.4 1.067-0.4s0.8 0.133 1.2 0.533l5.067 5.067 11.2-11.333c0.267-0.267 0.667-0.533 1.2-0.533 0.4 0 0.8 0.133 1.2 0.533l2.4 2.4c0.267 0.267 0.4 0.667 0.4 1.2z\"><\/path>\n<\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete\" data-css=\"tve-u-168740e044a\"><div style=\"text-align: justify;\">Tambi\u00e9n, vamos a copiar el c\u00f3digo de la Tabla1 en el espacio en blanco y queda de la siguiente manera, v\u00e9ase la imagen:<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-1687417352f\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40551\" alt=\"Factura de Ventas Final\" width=\"596\" height=\"211\" title=\"Codigo1\" data-id=\"40551\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo1.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-css=\"tve-u-161bfa2cb5c\" style=\"\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-18bef5c7b25\" style=\"\"><div class=\"tcb-styled-list-icon\"><div class=\"thrv_wrapper thrv_icon tve_no_drag tcb-no-delete tcb-no-clone tcb-icon-inherit-style\" data-css=\"tve-u-161bfa2b7d0\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-name=\"checkcheck\">\n\n<path d=\"M29.333 10.267c0 0.4-0.133 0.8-0.533 1.2l-14.8 14.8c-0.267 0.267-0.667 0.4-1.067 0.4s-0.933-0.133-1.2-0.533l-2.4-2.267-6.267-6.267c-0.267-0.267-0.4-0.667-0.4-1.2s0.133-0.8 0.533-1.2l2.4-2.4c0.267-0.133 0.667-0.4 1.067-0.4s0.8 0.133 1.2 0.533l5.067 5.067 11.2-11.333c0.267-0.267 0.667-0.533 1.2-0.533 0.4 0 0.8 0.133 1.2 0.533l2.4 2.4c0.267 0.267 0.4 0.667 0.4 1.2z\"><\/path>\n<\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete\" data-css=\"tve-u-1687419e703\"><div style=\"text-align: justify;\">Pulsamos guardar y cerramos VBA (Visual Basic para Aplicaciones).<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h4\" data-css=\"tve-u-161bfa413b1\" style=\"\"><h2 class=\"\" style=\"text-align: center;\">Creando bot\u00f3n para imprimir y guardar los datos - Factura de Ventas Final<\/h2><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfa3e70e\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfa3e70f\" style=\"text-align: justify;\">Para comenzar, vamos a crear un bot\u00f3n de comando, para insertarlo nos ubicamos en la pesta\u00f1a \"Programador\" (Office 2010,2016,2019 o 365) o \"Desarrollador\" (Office 2013), secci\u00f3n \"Controles\", desplegamos el comando \"Insertar\" y seleccionamos \"Bot\u00f3n Comando\" (Esta dentro de controles ActiveX).<\/p><p data-css=\"tve-u-161bfa3e70f\" style=\"text-align: justify;\">A continuaci\u00f3n, te invito a crear paso a paso tu<strong> Sistema de Gesti\u00f3n - Facturaci\u00f3n e Inventario<\/strong>, para eso tan solo <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/curso-como-crear-tu-sgfi\" target=\"_blank\" class=\"\" style=\"outline: none;\"><span data-css=\"tve-u-161bfa73323\" style=\"color: rgb(0, 23, 255);\"><strong>pulsa clic&nbsp;<\/strong><\/span><font color=\"#0017ff\"><strong>aqu\u00ed<\/strong><\/font><\/a>.<\/p><p data-css=\"tve-u-161bfa3e70f\" style=\"text-align: justify;\">Una vez seleccionado nos ubicamos a la mitad de la celda A2 y presionando el bot\u00f3n primario (Izquierdo) del mouse empezamos a dibujar el bot\u00f3n terminando hasta la mitad de la celda C2, te pido que veas la imagen:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16880d9cc55\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40605\" alt=\"Factura de Ventas Final\" width=\"574\" height=\"289\" title=\"Imprimir y Guardar\" data-id=\"40605\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Imprimir-y-Guardar-1.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfb2d888\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfb2d88b\" style=\"text-align: justify;\">Y si notas yo ya le puse nombre al bot\u00f3n, pero en tu caso aparecer\u00e1 por defecto el nombre Commandbutton1, ese nombre lo cambiaremos despu\u00e9s de agregarle el c\u00f3digo al bot\u00f3n.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h5\" data-css=\"tve-u-18bef5ee8c7\" style=\"\"><h3 class=\"\" style=\"text-align: center;\">C\u00f3digo que graba los datos de la factura en la Hoja Base - Factura de Ventas Final<\/h3><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfb6bbab\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfb6bbae\" style=\"text-align: justify;\">Entonces, as\u00ed a como est\u00e1 tu bot\u00f3n est\u00e1 activado en modo dise\u00f1o, le damos clic derecho, y se nos presenta varias opciones, seleccionamos \"Ver c\u00f3digo\" y se nos abre VBA. V\u00e9ase la imagen:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-1688158168d\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40608\" alt=\"Factura de Ventas Final\" width=\"590\" height=\"210\" title=\"Commandbutton1\" data-id=\"40608\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Commandbutton1-1.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfc4c872\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Para continuar, nos ubicamos en medio de las dos palabras y copiamos el siguiente c\u00f3digo:<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' imprimir<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Call Imprimir<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' rutina que graba la factura en hoja base<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' se busca la primer fila libre en hoja Fact<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">filalibre = Sheets (\"Base\") . Range (\"A65536\") . End (xlUp) . Row + 1<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' se pasar\u00e1n los datos desde la 1er fila de items<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">ActiveSheet . Range (\"A10\") . Select<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">fila = 10<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">While ActiveCell . Value &lt;&gt; \"\"<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' copiamos datos fijos ajustando nro col<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 2) = ActiveSheet . Range (\"F4\") &nbsp;' NRO FACT<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 1) = ActiveSheet . Range (\"B4\") &nbsp;' FECHA<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 3) = ActiveSheet . Range (\"C6\") &nbsp;' CLIENTE<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' otros datos del encabezado<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' copiamos lista de items<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 4) = ActiveCell . Offset (1, 0) ' CANT<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 5) = ActiveCell . Offset (0, 1) ' COD PROD<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 6) = ActiveCell . Offset (0, 2) ' PROD<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 7) = ActiveCell . Offset (0, 3) ' DESCRIPC<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 8) = ActiveCell . Offset (0, 4) ' PRECIO UNIT<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Sheets (\"Base\") . Cells (filalibre, 9) = ActiveCell . Offset (0, 5) ' PRECIO TOT<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' incremento la variable fila para repetir el bucle<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">filalibre = filalibre + 1<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' repito el bucle para las cantidades siguientes<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">ActiveCell . Offset (1, 0) .Select<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Wend<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' una ves concluida la copia debiera limpiarse el form de datos<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">' para el ingreso de nueva factura<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Call limpieza<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">End sub<\/p><p data-css=\"tve-u-161bfc4c875\" style=\"text-align: justify;\">Bien, una vez que ya has copiado el c\u00f3digo, guardas y cierras VBA, te dejo una imagen para que observes que lo has copiado correctamente, el c\u00f3digo copiado debe estar tal a como aparece en la imagen:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h6\" data-css=\"tve-u-161bfce33ff\" style=\"\"><h3 class=\"\" style=\"text-align: center;\">Ejemplo del C\u00f3digo a copiar - Factura de Ventas Final:<\/h3><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-1688192f706\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40610\" alt=\"Factura de Ventas Final\" width=\"618\" height=\"538\" title=\"Codigo a copiar\" data-id=\"40610\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Codigo-a-copiar.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfcfa40e\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfcfa412\" style=\"text-align: justify;\">Ohhh se me olvida un punto importante, y me refiero al nombre del bot\u00f3n \"Comando\". Activamos el modo dise\u00f1o del comando y le damos clic derecho, seleccionamos \"Ver c\u00f3digo\".<\/p><p data-css=\"tve-u-161bfcfa412\" style=\"text-align: justify;\">Esto nos lleva nuevamente a Visual Basic para Aplicaci\u00f3n, entonces ya estando dentro de VBA en el panel que se encuentra a la izquierda, podemos ver que la opci\u00f3n \"Propiedades\" siempre esta activa.<\/p><p data-css=\"tve-u-161bfcfa412\" style=\"text-align: justify;\">Pero en caso de no estar activo, pulsamos F4 y aparece la ventana Propiedades del CommandButton1. Te dejo una imagen como ejemplo para que la veas:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16881af6ee1\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40613\" alt=\"Factura de Ventas Final\" width=\"164\" height=\"538\" title=\"Propiedades del Commandbutton1\" data-id=\"40613\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Propiedades-del-Commandbutton1.png\" style=\"\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfdbc307\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfdbc309\" style=\"text-align: justify;\">Una vez activo las propiedades del bot\u00f3n commandButton1, buscamos dentro de las propiedades en la parte izquierda &nbsp;la palabra \"Caption\".<\/p><p data-css=\"tve-u-161bfdbc309\" style=\"text-align: justify;\">En la parte derecha tiene escrito CommandButton1, lo borramos y escribimos \"Imprimir y Guardar\", guardamos y cerramos VBA.<\/p><p data-css=\"tve-u-161bfdbc309\" style=\"text-align: justify;\">Muy bien! Podemos observar que ya cambio el nombre de tu bot\u00f3n ahora dice \"Imprimir y Guardar\". Felicidades ahora solo nos queda probar si todo funciona bien.&nbsp;<\/p><p data-css=\"tve-u-161bfdbc309\" style=\"text-align: justify;\">Pero antes de que hagas la prueba te regalo una imagen de la Propiedad Caption la cual esta resaltado en azul:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\"><h3 class=\"\" style=\"text-align: center;\">Ejemplo de Factura de Ventas Final<\/h3><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-16881bf1ea6\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img decoding=\"async\" loading=\"lazy\" class=\"tve_image wp-image-40615\" alt=\"Factura de Ventas Final\" width=\"151\" height=\"179\" title=\"Propiedades Caption\" data-id=\"40615\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/01\/Propiedades-Caption.png\" style=\"aspect-ratio: auto 151 \/ 179;\" data-width=\"151\" data-height=\"179\" data-init-width=\"151\" data-init-height=\"179\"><\/span><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfe33599\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">Estupendo! Hemos concluido ahora solo digita una cantidad, un c\u00f3digo, selecciona un nombre, digita la Fecha (Si no quieres digitar Fecha solo escribe dentro de la celda B4 la siguiente f\u00f3rmula&nbsp;<strong>=Hoy()<\/strong><strong>)<\/strong>.<\/p><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">Y pulsa el bot\u00f3n \"Imprimir y Guardar\" &nbsp;y veras como se imprimir\u00e1 y se guardara los datos.<\/p><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">No solo eso el n\u00famero de Factura aumentara y quedara autom\u00e1ticamente una nueva Factura limpia, lista para digitar nuevos datos.<\/p><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">A continuaci\u00f3n, te invito a crear paso a paso tu <strong>Sistema de Gesti\u00f3n - Facturaci\u00f3n e Inventario en Excel<\/strong>, para eso tan solo <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/curso-como-crear-tu-sgfi\" target=\"_blank\" class=\"\" style=\"outline: none;\"><span data-css=\"tve-u-161bfe5be8b\" style=\"color: rgb(0, 23, 255);\"><strong>pulsa clic&nbsp;<\/strong><\/span><font color=\"#0017ff\"><strong>aqu\u00ed<\/strong><\/font><\/a>.<\/p><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">Si te gusto el tema de hoy comp\u00e1rtelo con tus amigos de <a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\" class=\"\" style=\"outline: none;\">Facebook,<\/a> pulsando clic en el bot\u00f3n compartir:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_social_custom thrv_social tve_share_left\" data-counts=\"\" data-min_shares=\"0\" data-css=\"tve-u-18bef6376a6\">\n<div class=\"tve_social_items tve_social_custom tve_style_1 tve_social_itb tve-prevent-content-edit\">\n<div class=\"tve_s_item tve_s_fb_share thrv_wrapper tve_share_item\" data-s=\"fb_share\" data-href=\"https:\/\/aplicaexcelcontable.com\/blog\/sistema-de-facturacion-en-excel.html\" data-label=\"Compartir\" data-css=\"tve-u-18be2dd4a6b\">\n<a href=\"javascript:void(0)\" class=\"tve_s_link\"><span class=\"tve_s_icon thrv-svg-icon\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"tcb-facebook\" viewBox=\"0 0 16 28\"><path d=\"M14.984 0.187v4.125h-2.453q-1.344 0-1.813 0.562t-0.469 1.687v2.953h4.578l-0.609 4.625h-3.969v11.859h-4.781v-11.859h-3.984v-4.625h3.984v-3.406q0-2.906 1.625-4.508t4.328-1.602q2.297 0 3.563 0.187z\"><\/path><\/svg><\/span><span class=\"tve_s_text\">Compartir<\/span><span class=\"tve_s_count\">0<\/span><\/a>\n<\/div>\n<\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfe33599\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">Y si aun no estas suscrito en nuestro canal, tan solo pulsa clic en el bot\u00f3n rojo para acceder a todos los v\u00eddeos nuevos que subimos cada semana:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-18bef6486f5\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-18bef6486f4\"><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h1\" style=\"\" data-css=\"tve-u-18bef6486ff\"><h1 data-css=\"tve-u-18bef6486fb\" class=\"\"><strong>S\u00edguenos en:<\/strong><\/h1><\/div><div class=\"thrv_wrapper thrv-columns\" data-css=\"tve-u-18bef6486f2\" style=\"--tcb-col-el-width: 181;\"><div class=\"tcb-flex-row tcb--cols--2 tcb-resized\" style=\"\" data-css=\"tve-u-18bef6486fe\"><div class=\"tcb-flex-col\" data-css=\"tve-u-18bef6486f7\" style=\"\"><div class=\"tcb-col tve_empty_dropzone\" data-css=\"tve-u-18bef648702\"><a href=\"https:\/\/www.facebook.com\/aplicaexcecontable\" target=\"_blank\" rel=\" \" class=\"tve_empty_dropzone\"><div class=\"thrv_wrapper thrv_icon tcb-icon-display\" data-css=\"tve-u-18bef6486fa\" data-link-wrap=\"1\"><svg class=\"tcb-icon\" viewBox=\"0 0 24 28\" data-name=\"facebook-official\">\n<path d=\"M22.672 2c0.734 0 1.328 0.594 1.328 1.328v21.344c0 0.734-0.594 1.328-1.328 1.328h-6.109v-9.297h3.109l0.469-3.625h-3.578v-2.312c0-1.047 0.281-1.75 1.797-1.75l1.906-0.016v-3.234c-0.328-0.047-1.469-0.141-2.781-0.141-2.766 0-4.672 1.687-4.672 4.781v2.672h-3.125v3.625h3.125v9.297h-11.484c-0.734 0-1.328-0.594-1.328-1.328v-21.344c0-0.734 0.594-1.328 1.328-1.328h21.344z\"><\/path>\n<\/svg><\/div><\/a><\/div><\/div><div class=\"tcb-flex-col\" data-css=\"tve-u-18bef6486f6\" style=\"\"><div class=\"tcb-col tve_empty_dropzone\" data-css=\"tve-u-18bef648701\"><a href=\"http:\/\/www.youtube.com\/user\/excelycontabilidad?sub_confirmation=1\" target=\"_blank\" rel=\" \" class=\"tve_empty_dropzone\"><div class=\"thrv_wrapper thrv_icon tcb-icon-display tve-viewport-triggered\" data-css=\"tve-u-18bef6486f9\" data-link-wrap=\"1\" style=\"\"><svg class=\"tcb-icon\" viewBox=\"0 0 24 28\" data-name=\"youtube\">\n<path d=\"M15.172 19.437v3.297c0 0.703-0.203 1.047-0.609 1.047-0.234 0-0.469-0.109-0.703-0.344v-4.703c0.234-0.234 0.469-0.344 0.703-0.344 0.406 0 0.609 0.359 0.609 1.047zM20.453 19.453v0.719h-1.406v-0.719c0-0.703 0.234-1.062 0.703-1.062s0.703 0.359 0.703 1.062zM5.359 16.047h1.672v-1.469h-4.875v1.469h1.641v8.891h1.563v-8.891zM9.859 24.938h1.391v-7.719h-1.391v5.906c-0.313 0.438-0.609 0.656-0.891 0.656-0.187 0-0.297-0.109-0.328-0.328-0.016-0.047-0.016-0.219-0.016-0.547v-5.688h-1.391v6.109c0 0.547 0.047 0.906 0.125 1.141 0.125 0.391 0.453 0.578 0.906 0.578 0.5 0 1.031-0.313 1.594-0.953v0.844zM16.562 22.625v-3.078c0-0.719-0.031-1.234-0.141-1.547-0.172-0.578-0.562-0.875-1.109-0.875-0.516 0-1 0.281-1.453 0.844v-3.391h-1.391v10.359h1.391v-0.75c0.469 0.578 0.953 0.859 1.453 0.859 0.547 0 0.938-0.297 1.109-0.859 0.109-0.328 0.141-0.844 0.141-1.563zM21.844 22.469v-0.203h-1.422c0 0.562-0.016 0.875-0.031 0.953-0.078 0.375-0.281 0.562-0.625 0.562-0.484 0-0.719-0.359-0.719-1.078v-1.359h2.797v-1.609c0-0.828-0.141-1.422-0.422-1.813-0.406-0.531-0.953-0.797-1.656-0.797-0.719 0-1.266 0.266-1.672 0.797-0.297 0.391-0.438 0.984-0.438 1.813v2.703c0 0.828 0.156 1.437 0.453 1.813 0.406 0.531 0.953 0.797 1.687 0.797s1.313-0.281 1.687-0.828c0.172-0.25 0.297-0.531 0.328-0.844 0.031-0.141 0.031-0.453 0.031-0.906zM12.344 8.203v-3.281c0-0.719-0.203-1.078-0.672-1.078-0.453 0-0.672 0.359-0.672 1.078v3.281c0 0.719 0.219 1.094 0.672 1.094 0.469 0 0.672-0.375 0.672-1.094zM23.578 19.938c0 1.797-0.016 3.719-0.406 5.469-0.297 1.234-1.297 2.141-2.5 2.266-2.875 0.328-5.781 0.328-8.672 0.328s-5.797 0-8.672-0.328c-1.203-0.125-2.219-1.031-2.5-2.266-0.406-1.75-0.406-3.672-0.406-5.469v0c0-1.813 0.016-3.719 0.406-5.469 0.297-1.234 1.297-2.141 2.516-2.281 2.859-0.313 5.766-0.313 8.656-0.313s5.797 0 8.672 0.313c1.203 0.141 2.219 1.047 2.5 2.281 0.406 1.75 0.406 3.656 0.406 5.469zM7.984 0h1.594l-1.891 6.234v4.234h-1.563v-4.234c-0.141-0.766-0.453-1.859-0.953-3.313-0.344-0.969-0.688-1.953-1.016-2.922h1.656l1.109 4.109zM13.766 5.203v2.734c0 0.828-0.141 1.453-0.438 1.844-0.391 0.531-0.938 0.797-1.656 0.797-0.703 0-1.25-0.266-1.641-0.797-0.297-0.406-0.438-1.016-0.438-1.844v-2.734c0-0.828 0.141-1.437 0.438-1.828 0.391-0.531 0.938-0.797 1.641-0.797 0.719 0 1.266 0.266 1.656 0.797 0.297 0.391 0.438 1 0.438 1.828zM19 2.672v7.797h-1.422v-0.859c-0.562 0.656-1.094 0.969-1.609 0.969-0.453 0-0.781-0.187-0.922-0.578-0.078-0.234-0.125-0.609-0.125-1.172v-6.156h1.422v5.734c0 0.328 0 0.516 0.016 0.547 0.031 0.219 0.141 0.344 0.328 0.344 0.281 0 0.578-0.219 0.891-0.672v-5.953h1.422z\"><\/path>\n<\/svg><\/div><\/a><\/div><\/div><\/div><\/div><div class=\"thrv_wrapper thrv_icon tcb-icon-display tve-viewport-triggered\" data-css=\"tve-u-18bef6486fc\" style=\"\"><svg class=\"tcb-icon\" viewBox=\"0 0 26 28\" data-name=\"hand-pointer-o\">\n<path d=\"M10 2c-1.109 0-2 0.891-2 2v14l-2.359-3.156c-0.391-0.516-1.016-0.844-1.672-0.844-1.094 0-1.969 0.922-1.969 2 0 0.438 0.141 0.859 0.406 1.203l6 8c0.375 0.5 0.969 0.797 1.594 0.797h11.219c0.453 0 0.859-0.313 0.969-0.75l1.437-5.75c0.25-1 0.375-2.016 0.375-3.031v-3.391c0-0.828-0.641-1.578-1.5-1.578-0.828 0-1.5 0.672-1.5 1.5h-0.5v-0.953c0-0.984-0.75-1.797-1.75-1.797-0.969 0-1.75 0.781-1.75 1.75v1h-0.5v-1.406c0-1.125-0.859-2.094-2-2.094-1.109 0-2 0.891-2 2v1.5h-0.5v-8.906c0-1.125-0.859-2.094-2-2.094zM10 0c2.234 0 4 1.875 4 4.094v3.437c0.172-0.016 0.328-0.031 0.5-0.031 1.016 0 1.969 0.391 2.703 1.078 0.484-0.219 1.016-0.328 1.547-0.328 1.125 0 2.172 0.5 2.875 1.359 0.297-0.078 0.578-0.109 0.875-0.109 1.969 0 3.5 1.641 3.5 3.578v3.391c0 1.172-0.141 2.359-0.438 3.516l-1.437 5.75c-0.328 1.328-1.531 2.266-2.906 2.266h-11.219c-1.25 0-2.453-0.609-3.203-1.594l-6-8c-0.516-0.688-0.797-1.547-0.797-2.406 0-2.188 1.781-4 3.969-4 0.719 0 1.422 0.187 2.031 0.547v-8.547c0-2.203 1.797-4 4-4zM12 22v-6h-0.5v6h0.5zM16 22v-6h-0.5v6h0.5zM20 22v-6h-0.5v6h0.5z\"><\/path>\n<\/svg><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h6\" data-css=\"tve-u-18bef658e9c\" style=\"\"><h6 class=\"\" style=\"\" data-css=\"tve-u-18bef655b38\">Para Finalizar:<\/h6><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161bfe33599\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161bfe3359e\" style=\"text-align: justify;\">Me gustar\u00eda saber que piensas de este articulo \"Como crear tu Factura de Ventas Final\", por lo tanto, d\u00e9jame tu comentario con dudas, criticas constructivas y sugerencias.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\" data-css=\"tve-u-193bb77c657\" style=\"\">\n\t<div class=\"tve-content-box-background\"><\/div>\n\t<div class=\"tve-cb\" style=\"\" data-css=\"tve-u-193bb77c656\"><div class=\"thrv_wrapper thrv_text_element tcb-highlight-added\">\t<p style=\"\">Cualquier duda o pregunta, puedes escribirme directamente en la<span style=\"--tcb-text-highlight-color: rgb(237, 243, 13) !important;\" data-css=\"tve-u-193bb77c659\">&nbsp;<\/span><a href=\"#comentario\" class=\"tve-jump-scroll\" style=\"outline: none;\"><span style=\"--tcb-text-highlight-color: rgb(237, 243, 13) !important;\" data-css=\"tve-u-193bb77c65a\">secci\u00f3n de comentarios<\/span><\/a>, en la <a href=\"https:\/\/aplicaexcelcontable.com\/blog\/contacto\" target=\"_blank\" class=\"\" style=\"outline: none;\"><span style=\"--tcb-text-highlight-color: rgb(231, 100, 224) !important;\" data-css=\"tve-u-193bb77c65b\" data-text-highlight=\"bubble\">pagina del chat<\/span><\/a>, directamente en <span style=\"--tcb-text-highlight-color: rgb(30, 184, 76) !important;\" data-css=\"tve-u-193bb77c65c\">whatsapp<\/span> o bien al correo electr\u00f3nico rogerperez@aplicaexcelcontable.com.<span style=\"--tcb-text-highlight-color: transparent !important;\" data-css=\"tve-u-193bb77c65d\"><\/span><\/p><p style=\"\">Te saluda,<span style=\"--tcb-text-highlight-color: transparent !important;\"><\/span><\/p><p style=\"\"><strong>Roger Perez \u2013 Aplica Excel Contable<\/strong><\/p><\/div><\/div>\n<\/div>","tve_custom_css":"@media (min-width: 300px){[data-css=\"tve-u-161bfe5be8b\"] { color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161bfce33ff\"] { margin-top: 20px !important; margin-bottom: 20px !important; }[data-css=\"tve-u-161bfa73323\"] { color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161bfa413b1\"] { margin-top: 20px !important; margin-bottom: 20px !important; }:not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] p, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] li, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] blockquote, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] address, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h1, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h2, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h3, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h4, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h5, :not(#tve) [data-css=\"tve-u-161bfa2cb5c\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bfa2b7d0\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161bf9f3e84\"] p, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] li, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] blockquote, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] address, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h1, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h2, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h3, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h4, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h5, :not(#tve) [data-css=\"tve-u-161bf9f3e84\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bf9f247f\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] p, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] li, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] blockquote, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] address, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h1, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h2, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h3, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h4, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h5, :not(#tve) [data-css=\"tve-u-161bf9b6ee3\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bf9b58c2\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161bf963c9b\"] p, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] li, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] blockquote, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] address, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h1, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h2, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h3, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h4, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h5, :not(#tve) [data-css=\"tve-u-161bf963c9b\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bf961f47\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] p, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] li, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] blockquote, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] address, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h1, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h2, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h3, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h4, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h5, :not(#tve) [data-css=\"tve-u-161bf8e6f7b\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bf8e55aa\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161bf78d3d2\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bf78d3d5\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bf861600\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bf861601\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bf8baa57\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bf8baa5a\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfa3e70e\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfa3e70f\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfb2d888\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfb2d88b\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfb6bbab\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfb6bbae\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfc4c872\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfc4c875\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfcfa40e\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfcfa412\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfdbc307\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfdbc309\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161bfe33599\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161bfe3359e\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161c00439f6\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161c00439f8\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-16873d40722\"] { width: 439px; }[data-css=\"tve-u-16873ebbc6c\"] { width: 593px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-16874072442\"] { width: 340px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-168740d03ff\"] { width: 483px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-168740f595b\"] { margin-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; }[data-css=\"tve-u-16874102a69\"] { margin-top: 0px !important; padding-right: 0px !important; padding-bottom: 0px !important; }[data-css=\"tve-u-16874111060\"] { padding-right: 0px !important; margin-top: 0px !important; padding-bottom: 0px !important; }[data-css=\"tve-u-1687417352f\"] { width: 596px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-16880d9cc55\"] { width: 574px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-1688158168d\"] { width: 590px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-1688192f706\"] { width: 618px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-16881af6ee1\"] { width: 164px; float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-16881bf1ea6\"] { width: 151px; float: none; margin-left: auto !important; margin-right: auto !important; }:not(#tve) [data-css=\"tve-u-18bef3b781a\"] { color: rgb(0, 0, 0) !important; --tcb-applied-color: rgb(0,0,0) !important; --tve-applied-color: rgb(0,0,0) !important; font-size: 42px !important; }[data-css=\"tve-u-18bef3cd619\"] { margin-top: 20px !important; margin-bottom: 20px !important; }:not(#tve) [data-css=\"tve-u-18bef59ad6f\"] { font-size: 38px !important; color: rgb(0, 0, 0) !important; --tcb-applied-color: rgb(0,0,0) !important; --tve-applied-color: rgb(0,0,0) !important; }[data-css=\"tve-u-18bef5a13ad\"] { margin-top: 20px !important; margin-bottom: 20px !important; }[data-css=\"tve-u-18bef5a40bd\"] { margin-top: 20px !important; }[data-css=\"tve-u-18bef5add66\"] { padding-bottom: 0px !important; }[data-css=\"tve-u-161bf8e6f7b\"] { padding-top: 1px !important; padding-bottom: 1px !important; }[data-css=\"tve-u-161bf963c9b\"] { padding-top: 1px !important; padding-bottom: 1px !important; }[data-css=\"tve-u-161bf9b6ee3\"] { padding-top: 1px !important; padding-bottom: 1px !important; }[data-css=\"tve-u-161bf9f3e84\"] { padding-top: 1px !important; padding-bottom: 1px !important; }[data-css=\"tve-u-18bef5c7b25\"] { padding-bottom: 0px !important; }[data-css=\"tve-u-161bfa2cb5c\"] { padding-top: 1px !important; padding-bottom: 1px !important; }[data-css=\"tve-u-18bef5ee8c7\"] { margin-top: 20px !important; margin-bottom: 20px !important; }[data-css=\"tve-u-18bef6376a6\"] { float: none; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-18bef6486f2\"] { margin-top: -55px !important; margin-left: 25px !important; }[data-css=\"tve-u-18bef6486f4\"] { min-height: 1px; }[data-css=\"tve-u-18bef6486f5\"] { max-width: 208px; float: none; z-index: 3; position: relative; width: 100%; --tve-alignment: center; margin-top: 20px !important; margin-left: auto !important; margin-right: auto !important; padding-left: 1px !important; }[data-css=\"tve-u-18bef6486f6\"] { max-width: 81.3%; }[data-css=\"tve-u-18bef6486f7\"] { max-width: 18.7%; }:not(#tve) [data-css=\"tve-u-18bef6486f9\"] > :first-child { color: rgb(191, 20, 20); }:not(#tve) [data-css=\"tve-u-18bef6486fa\"] > :first-child { color: rgb(60, 18, 215); }:not(#tve) [data-css=\"tve-u-18bef6486fb\"] { font-size: 26px !important; color: rgb(3, 77, 44) !important; }[data-css=\"tve-u-18bef6486fc\"] { font-size: 60px; margin-top: -50px !important; margin-left: 100px !important; }[data-css=\"tve-u-18bef6486fa\"] { font-size: 60px; }[data-css=\"tve-u-18bef6486f9\"] { font-size: 60px; margin-right: 65px !important; margin-left: 45px !important; }[data-css=\"tve-u-18bef6486fe\"] { padding-left: 0px !important; }[data-css=\"tve-u-18bef6486ff\"] { padding-left: 15px !important; }:not(#tve) [data-css=\"tve-u-18bef655b38\"] { color: rgb(0, 0, 0) !important; --tcb-applied-color: rgb(0,0,0) !important; --tve-applied-color: rgb(0,0,0) !important; font-size: 25px !important; }[data-css=\"tve-u-18bef658e9c\"] { margin-top: 20px !important; margin-bottom: 20px !important; }[data-css=\"tve-u-18bfe340ace\"] .tcb-button-link { letter-spacing: 2px; background-image: linear-gradient(var(--tcb-local-color-62516,rgb(19,114,211)),var(--tcb-local-color-62516,rgb(19,114,211))); --tve-applied-background-image: linear-gradient(var$(--tcb-local-color-62516,rgb(19,114,211)),var$(--tcb-local-color-62516,rgb(19,114,211))); background-size: auto; background-attachment: scroll; border-radius: 10px; padding: 14px 22px; background-position: 50% 50%; background-repeat: no-repeat; overflow: hidden; border: none; --tve-applied-border: none; background-color: transparent !important; }[data-css=\"tve-u-18bfe340ace\"] .tcb-button-link span { color: rgb(255, 255, 255); --tcb-applied-color: #fff; }[data-css=\"tve-u-18bfe340ace\"] { --tve-border-radius: 10px; --tcb-local-color-62516: rgb(0,255,0) !important; margin-top: 0px !important; }:not(#tve) [data-css=\"tve-u-18bfe340ace\"] .tcb-button-link { line-height: 1.2em; font-size: 24px; }[data-css=\"tve-u-18bfe340acf\"] { font-size: 20px !important; }.tcb-post-list[data-css=\"tve-u-186df1bf84d\"] .post-wrapper.thrv_wrapper { width: calc(100% + 0px); }.tcb-post-list[data-css=\"tve-u-186df1bf84d\"] .post-wrapper.thrv_wrapper:nth-child(n+2) { margin-top: 50px !important; }.tcb-post-list[data-css=\"tve-u-186df1bf84d\"] .post-wrapper.thrv_wrapper:not(:nth-child(n+2)) { margin-top: 0px !important; }.tcb-post-list[data-css=\"tve-u-186df1bf84d\"] .post-wrapper.thrv_wrapper:not(:nth-child(n)) { margin-right: 30px !important; }.tcb-post-list[data-css=\"tve-u-186df1bf84d\"] .post-wrapper.thrv_wrapper:nth-child(n) { margin-right: 0px !important; }.tcb-post-list[data-css=\"tve-u-18703fb75db\"] .post-wrapper.thrv_wrapper { width: calc(33.3333% - 13.3333px); }.tcb-post-list[data-css=\"tve-u-18703fb75db\"] .post-wrapper.thrv_wrapper:nth-child(n+4) { margin-top: 20px !important; }.tcb-post-list[data-css=\"tve-u-18703fb75db\"] .post-wrapper.thrv_wrapper:not(:nth-child(n+4)) { margin-top: 0px !important; }.tcb-post-list[data-css=\"tve-u-18703fb75db\"] .post-wrapper.thrv_wrapper:not(:nth-child(3n)) { margin-right: 20px !important; }.tcb-post-list[data-css=\"tve-u-18703fb75db\"] .post-wrapper.thrv_wrapper:nth-child(3n) { margin-right: 0px !important; }[data-css=\"tve-u-193bb65e340\"] { margin-bottom: 10px !important; }:not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] label { font-size: var(--tve-font-size,20px); }[data-css=\"tve-u-193bb77c656\"] { --tve-font-size: 20px; --tve-color: rgb(7,0,0); --tve-applied---tve-color: rgb(7,0,0); text-align: justify; }:not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] label, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h1, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h2, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h3, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h4, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h5, :not(#tve) .thrv-content-box [data-css=\"tve-u-193bb77c656\"] h6 { color: var(--tve-color,rgb(7,0,0)); --tve-applied-color: var$(--tve-color,rgb(7,0,0)); --tcb-applied-color: rgb(7,0,0); }[data-css=\"tve-u-193bb77c656\"] p { padding: 0px 0px 11px !important; margin: 0px !important; }[data-css=\"tve-u-193bb77c657\"] { margin-top: 20px !important; margin-bottom: 20px !important; padding: 0px !important; }[data-css=\"tve-u-193bb77c659\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-193bb77c65a\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-193bb77c65b\"] { --tve-highlight-background: url(\"data:image\/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20314%20114%22%20preserveAspectRatio%3D'none'%3E%0A%09%09%09%09%09%3Cpath%20d%3D%22M149.412%202.398C98.053%204.579%2074.996%207.562%2053.903%2014.754%2028.892%2023.283%208.503%2040.617%202.929%2058.09c-4.148%2013.004-.464%2026.402%2010.207%2037.118%205.664%205.687%2015.228%2012.328%2021.753%2015.104%202.939%201.25%208.598%202.708%2010.559%202.72%201.16.008%201.111-.129-.909-2.543-2.554-3.05-4.753-7.567-4.761-9.775-.008-2.502%202.482-6.937%204.862-8.661%205.613-4.066%2020.333-6.115%2050.607-7.046%2012.81-.394%2019.622.068%2047.623%203.231%2057%206.439%2066.925%207.222%2091.845%207.248%2016.516.016%2020.951-.139%2026.167-.919%2020.12-3.007%2032.633-8.401%2041.489-17.883%206.859-7.344%2010.154-16.516%2010.254-28.537.032-3.902-.231-7.704-.651-9.42-5.257-21.464-31.961-33.668-80.137-36.622-11.85-.727-62.651-.546-82.425.293%22%2F%3E%0A%09%09%09%09%3C%2Fsvg%3E\"); --tcb-text-highlight-color: #2ABB61 !important; }[data-css=\"tve-u-193bb77c65c\"] { --tcb-text-highlight-color: rgb(30,184,76) !important; }[data-css=\"tve-u-193bb77c65d\"] { --tcb-text-highlight-color: transparent !important; }}@media (max-width: 767px){[data-css=\"tve-u-18bef6486fc\"] { margin-left: 90px !important; }[data-css=\"tve-u-18bef648701\"] { margin-left: 128px !important; padding-left: 1px !important; margin-right: -51px !important; margin-top: -96px !important; }[data-css=\"tve-u-18bef648702\"] { margin-left: -16px !important; padding-left: 0px !important; padding-right: 0px !important; margin-right: 0px !important; }[data-css=\"tve-u-18bef6486fa\"] { margin-left: 20px !important; }[data-css=\"tve-u-18bef6486f9\"] { margin-left: -35px !important; }}","tve_user_custom_css":"","tve_globals":{"e":"1","font_cls":[]},"tcb2_ready":1,"tcb_editor_enabled":1,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[4],"tags":[66,177,175,180,179,178,294,181,182],"class_list":["post-281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-programar-en-excel","tag-excel","tag-factura-de-ventas","tag-facturas-de-venta","tag-imprimir","tag-imprimir-y-guardar","tag-macro","tag-programar-en-excel","tag-sheets","tag-vba","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/comments?post=281"}],"version-history":[{"count":0,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/281\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media\/40551"}],"wp:attachment":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media?parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/categories?post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/tags?post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}