{"id":2258,"date":"2013-11-15T06:00:22","date_gmt":"2013-11-15T12:00:22","guid":{"rendered":"http:\/\/aplicaexcelcontable.com\/blog\/?p=2258"},"modified":"2024-12-06T13:51:27","modified_gmt":"2024-12-06T19:51:27","slug":"como-crear-una-macro-en-excel","status":"publish","type":"post","link":"https:\/\/aplicaexcelcontable.com\/blog\/como-crear-una-macro-en-excel.html","title":{"rendered":"Como Crear una Macro &#8211; Curso Basico de VBA"},"content":{"rendered":"<h1 style=\"text-align: center;\">Como crear una Macro &#8211; Curso B\u00e1sico de VBA<\/h1>\n<p style=\"text-align: justify;\">Comencemos con el articulo <strong>Programar en Excel &#8211; Como crear una Macro:<\/strong><\/p>\n<p style=\"text-align: justify;\">Ya viste el tema anterior? Si no lo has visto por favor <span style=\"color: rgb(0, 23, 255);\"><strong><a href=\"https:\/\/aplicaexcelcontable.com\/blog\/programar-en-excel-como-comenzar-en-vba.html\" style=\"outline: none;\" target=\"_blank\">pulsa clic aqu\u00ed<\/a><\/strong><\/span><span style=\"color: rgb(0, 0, 0);\">, <\/span>es muy importante que lleves la secuencia para que al terminar puedas crear tu propia Macro y personalizar todos los c\u00f3digos.<\/p>\n<p style=\"text-align: justify;\">Hoy vamos a conocer <strong>Como crear una Macro<\/strong>, como se escribe una Macro en VBA, como se grava una Macro en Excel.<\/p>\n<h2 style=\"text-align: center;\">Como Crear una Macro &#8211; pasos para&nbsp; Escribir una Macro<\/h2>\n<p style=\"text-align: justify;\">A la hora de crear una nueva Macro existen 3 m\u00e9todos:<strong>A)<\/strong> Escribirla manualmente<strong>B)<\/strong> Utilizar la grabadora de Macros<strong>C)&nbsp;<\/strong>Combinaci\u00f3n de los 2 m\u00e9todos anteriores (Grabarla y luego retocarla manualmente). En cada situaci\u00f3n utilizar\u00e1s un m\u00e9todo distinto.<\/p>\n<p style=\"text-align: justify;\">Por ejemplo, las Macros muy sencillas las puedes escribir manualmente porque tienen pocas l\u00edneas y ya las conoces. En otros casos las podr\u00e1s crear con la Grabadora de Macros y olvidarte del c\u00f3digo VBA.<\/p>\n<p style=\"text-align: justify;\">Sin embargo, en la medida que progreses con las Macros ver\u00e1s que el m\u00e9todo m\u00e1s utilizado suele ser el n\u00famero 3 mediante el cual primero grabar\u00e1s y luego har\u00e1s ajustes manuales en el c\u00f3digo para hacerlo m\u00e1s eficiente y que se ejecute m\u00e1s r\u00e1pido.<\/p>\n<p style=\"text-align: justify;\">En este Post vamos a ver como se escribe una Macro manualmente (M\u00e9todo 1).<\/p>\n<h2 style=\"text-align: center;\">Como Crear una Macro &#8211; Escribiendo mi primera Macro<\/h2>\n<p style=\"text-align: justify;\">Vamos a escribir manualmente nuestra primera Macro ahora!. Es una Macro muy sencilla, pero te servir\u00e1 para orientarte en el editor de Visual Basic y reconocer los pasos requeridos para hacer una Macro.<\/p>\n<h2 style=\"text-align: center;\">Objetivo de nuestra Macro &#8211; Como Crear una Macro<\/h2>\n<p style=\"text-align: justify;\">Escribir el valor 1.500 en la celda A1 de la Hoja Excel. \u00bfQue significa esto? Que comenzaremos con una Hoja Excel vac\u00eda y luego de ejecutar la macro ver\u00e1s que aparece el valor 1.500 en la celda A1.<\/p>\n<p style=\"text-align: justify;\">El valor lo pondr\u00e1 autom\u00e1ticamente la Macro cuando nosotros se lo indiquemos. Suena demasiado simple, cierto?<\/p>\n<p style=\"text-align: justify;\">Sin embargo es suficiente como para comenzar y que aprendas generalidades que luego aplicar\u00e1s en todas tus Macros.&nbsp; Como es una Macro sencilla vamos a escribirla manualmente para que comiences a empaparte del editor de macros y sus partes.<\/p>\n<h3 style=\"text-align: center;\">Escribiendo la Macro &#8211; Como Crear una Macro<\/h3>\n<p style=\"text-align: justify;\">Bueno, es importante que recuerdes el objetivo: Esta Macro escribir\u00e1 autom\u00e1ticamente el valor 1.500 en la celda A1 de tu hoja Excel. Los pasos que debes seguir son los siguientes:<\/p>\n<ul>\n<li><span>Prepara el editor de Visual Basic.<\/span><\/li>\n<li><span>Crea un nuevo Libro Excel y gu\u00e1rdalo con el nombre Libro1.<\/span><\/li>\n<li><span>Abre el editor de Visual Basic con las teclas Alt + F11.<\/span><\/li>\n<li><span>Doble clic en VBAProject (Libro1) para ver las carpetas.<\/span><\/li>\n<li><span>Doble clic en la Hoja1 (Hoja1) para empezar a escribir el c\u00f3digo de la Macro.<\/span><\/li>\n<\/ul>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Como Crear una Macro\" width=\"288\" height=\"328\" title=\"Seleccionando la Hoja 1 en VBA1\" data-id=\"34603\" src=\"\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2018\/02\/Seleccionando-la-Hoja-1-en-VBA1.png\" data-width=\"288\" data-height=\"328\" data-init-width=\"288\" data-init-height=\"328\" style=\"aspect-ratio: auto 288 \/ 328;\"><\/span><\/p>\n<ul>\n<li><span>Escribir\u00e1s la Macro.<\/span><\/li>\n<li><span>En la ventana de Macros escribe textualmente el siguiente c\u00f3digo:<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Sub MiPrimeraMacro()<\/p>\n<p style=\"text-align: justify;\">&#8216; Esta macro escribe el valor 1500 en la celda A1<\/p>\n<p style=\"text-align: justify;\">Range(\u00abA1\u00bb).Value = 1500<\/p>\n<p style=\"text-align: justify;\">End Sub<\/p>\n<ul>\n<li><span>Si la Macro est\u00e1 bien copiada ver\u00e1s que el Sub y el End Sub quedan de color azul y la segunda linea queda en verde. Los colores los asigna autom\u00e1ticamente el editor y te lo explicaremos m\u00e1s adelante.<\/span><\/li>\n<\/ul>\n<h3 style=\"text-align: center;\">Como Crear una Macro &#8211; Ejemplo en la Imagen<\/h3>\n<p><span><img loading=\"lazy\" decoding=\"async\" alt=\"Como Crear una Macro\" width=\"628\" height=\"236\" title=\"Primer codigo en VBA\" data-id=\"34604\" src=\"\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2018\/02\/Primer-Codigo-en-VBA2.png\" data-width=\"628\" data-height=\"236\" data-init-width=\"628\" data-init-height=\"236\" style=\"aspect-ratio: auto 628 \/ 236;\"><\/span><\/p>\n<p style=\"text-align: justify;\">De momento no te preocupes por el c\u00f3digo escrito, m\u00e1s adelante te ense\u00f1aremos a interpretarlo. Ahora que ya tienes la Macro escrita pasemos a la siguiente secci\u00f3n para ver como ejecutarla.<\/p>\n<p style=\"text-align: justify;\">Si no entendiste algo, por favor revisa detenidamente todo este articulo de <strong>Como crear una Macro<\/strong>. La siguiente secci\u00f3n lo veremos en el pr\u00f3ximo tema. Te dejo el enlace para que puedas verlo:<\/p>\n<p style=\"text-align: justify;\">Me gustar\u00eda saber que piensas de este articulo \u00abProgramar en Excel &#8211; Como crear una Macro\u00bb.<\/p>\n<p style=\"text-align: justify;\">Por lo tanto:<\/p>\n<p style=\"text-align: justify;\">D\u00e9jame tu comentario con dudas, cr\u00edticas constructivas y sugerencia en la secci\u00f3n de comentarios o bien en el Chat. Al mismo tiempo te invito a que visites nuestra pagina de Facebook, <span style=\"color: rgb(0, 23, 255);\"><a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\" rel=\"noopener\"><strong>pulsando clic aqu\u00ed<\/strong><\/a><\/span>.<\/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 una Macro &#8211; Curso B\u00e1sico de VBA Comencemos con el articulo Programar en Excel &#8211; Como crear una Macro: Ya viste el tema anterior? Si no lo has visto por favor pulsa clic aqu\u00ed, es muy importante que lleves la secuencia para que al terminar puedas crear tu propia Macro y personalizar todos [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34603,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","tve_updated_post":"<div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h1\"><h1 style=\"text-align: center;\" data-css=\"tve-u-169032d3b4b\" class=\"\">Como crear una Macro - Curso B\u00e1sico de VBA<\/h1><\/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-161d98d8e9e\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d98d8e9f\" style=\"text-align: justify;\">Comencemos con el articulo <strong>Programar en Excel - Como crear una Macro:<\/strong><\/p><p data-css=\"tve-u-161d98d8e9f\" style=\"text-align: justify;\">Ya viste el tema anterior? Si no lo has visto por favor <span data-css=\"tve-u-161d9967b58\" style=\"color: rgb(0, 23, 255);\"><strong><a href=\"https:\/\/aplicaexcelcontable.com\/blog\/programar-en-excel-como-comenzar-en-vba.html\" class=\"\" style=\"outline: none;\" target=\"_blank\">pulsa clic aqu\u00ed<\/a><\/strong><\/span><span data-css=\"tve-u-161d996bf88\" style=\"color: rgb(0, 0, 0);\">, <\/span>es muy importante que lleves la secuencia para que al terminar puedas crear tu propia Macro y personalizar todos los c\u00f3digos.<\/p><p data-css=\"tve-u-161d98d8e9f\" style=\"text-align: justify;\">Hoy vamos a conocer <strong>Como crear una Macro<\/strong>, como se escribe una Macro en VBA, como se grava una Macro en Excel.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h2\"><h2 data-css=\"tve-u-161d9a20427\" style=\"text-align: center;\" class=\"\">Como Crear una Macro - pasos para&nbsp; Escribir una Macro<\/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-161d9a33ca2\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9a33ca4\" style=\"text-align: justify;\">A la hora de crear una nueva Macro existen 3 m\u00e9todos:<br><br><strong>A)<\/strong> Escribirla manualmente<br><br><strong>B)<\/strong> Utilizar la grabadora de Macros<br><strong><br>C)&nbsp;<\/strong>Combinaci\u00f3n de los 2 m\u00e9todos anteriores (Grabarla y luego retocarla manualmente). En cada situaci\u00f3n utilizar\u00e1s un m\u00e9todo distinto.<\/p><p data-css=\"tve-u-161d9a33ca4\" style=\"text-align: justify;\">Por ejemplo, las Macros muy sencillas las puedes escribir manualmente porque tienen pocas l\u00edneas y ya las conoces. En otros casos las podr\u00e1s crear con la Grabadora de Macros y olvidarte del c\u00f3digo VBA.<\/p><p data-css=\"tve-u-161d9a33ca4\" style=\"text-align: justify;\">Sin embargo, en la medida que progreses con las Macros ver\u00e1s que el m\u00e9todo m\u00e1s utilizado suele ser el n\u00famero 3 mediante el cual primero grabar\u00e1s y luego har\u00e1s ajustes manuales en el c\u00f3digo para hacerlo m\u00e1s eficiente y que se ejecute m\u00e1s r\u00e1pido.<\/p><p data-css=\"tve-u-161d9a33ca4\" style=\"text-align: justify;\">En este Post vamos a ver como se escribe una Macro manualmente (M\u00e9todo 1).<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h3\"><h2 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-1939d7f9d62\">Como Crear una Macro - Escribiendo mi primera Macro<\/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-161d9b34def\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9b34df1\" style=\"text-align: justify;\">Vamos a escribir manualmente nuestra primera Macro ahora!. Es una Macro muy sencilla, pero te servir\u00e1 para orientarte en el editor de Visual Basic y reconocer los pasos requeridos para hacer una Macro.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h4\"><h2 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-1939d7ff142\">Objetivo de nuestra Macro - Como Crear una Macro<\/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-161d9b55f65\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9b55f67\" style=\"text-align: justify;\">Escribir el valor 1.500 en la celda A1 de la Hoja Excel. \u00bfQue significa esto? Que comenzaremos con una Hoja Excel vac\u00eda y luego de ejecutar la macro ver\u00e1s que aparece el valor 1.500 en la celda A1.<\/p><p data-css=\"tve-u-161d9b55f67\" style=\"text-align: justify;\">El valor lo pondr\u00e1 autom\u00e1ticamente la Macro cuando nosotros se lo indiquemos. Suena demasiado simple, cierto?<\/p><p data-css=\"tve-u-161d9b55f67\" style=\"text-align: justify;\">Sin embargo es suficiente como para comenzar y que aprendas generalidades que luego aplicar\u00e1s en todas tus Macros.&nbsp; Como es una Macro sencilla vamos a escribirla manualmente para que comiences a empaparte del editor de macros y sus partes.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h5\"><h3 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-1939d80f385\">Escribiendo la Macro - Como Crear una Macro<\/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-161d9b92f81\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9b92f83\" style=\"text-align: justify;\">Bueno, es importante que recuerdes el objetivo: Esta Macro escribir\u00e1 autom\u00e1ticamente el valor 1.500 en la celda A1 de tu hoja Excel. Los pasos que debes seguir son los siguientes:<\/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-161d9ba30cf\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\"><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-161d9ba195a\"><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-169034f5f14\"><div style=\"text-align: justify;\">Prepara el editor de Visual Basic.<\/div><\/span><\/li><li class=\"thrv-styled-list-item\"><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-161d9ba195f\"><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-169034f5f14\"><div style=\"text-align: justify;\">Crea un nuevo Libro Excel y gu\u00e1rdalo con el nombre Libro1.<\/div><\/span><\/li><li class=\"thrv-styled-list-item\"><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-161d9ba1960\"><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-169034f5f14\"><div style=\"text-align: justify;\">Abre el editor de Visual Basic con las teclas Alt + F11.<\/div><\/span><\/li><li class=\"thrv-styled-list-item\"><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-161d9bc1bd9\"><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-169034f5f14\"><div style=\"text-align: justify;\">Doble clic en VBAProject (Libro1) para ver las carpetas.<\/div><\/span><\/li><li class=\"thrv-styled-list-item\"><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-161d9bc5c7d\"><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-169034f5f14\"><div style=\"text-align: justify;\">Doble clic en la Hoja1 (Hoja1) para empezar a escribir el c\u00f3digo de la Macro.<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-161d9cd2587\"><span class=\"tve_image_frame\"><img loading=\"lazy\" decoding=\"async\" class=\"tve_image wp-image-34603\" alt=\"Como Crear una Macro\" width=\"288\" height=\"328\" title=\"Seleccionando la Hoja 1 en VBA1\" data-id=\"34603\" src=\"\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2018\/02\/Seleccionando-la-Hoja-1-en-VBA1.png\" data-width=\"288\" data-height=\"328\" data-init-width=\"288\" data-init-height=\"328\" style=\"aspect-ratio: auto 288 \/ 328;\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-color=\"rgb(0, 0, 0)\" data-css=\"tve-u-161d9ce601f\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\"><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-161d9ce4b04\"><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-169035dbc7a\">Escribir\u00e1s la Macro.<\/span><\/li><li class=\"thrv-styled-list-item\"><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-161d9ce4b08\"><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-169035dbc7a\"><div style=\"text-align: justify;\">En la ventana de Macros escribe textualmente el siguiente c\u00f3digo:<\/div><\/span><\/li><\/ul><\/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-161d9cf82ca\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9cf82cc\" style=\"text-align: justify;\">Sub MiPrimeraMacro()<\/p><p data-css=\"tve-u-161d9cf82cc\" style=\"text-align: justify;\">' Esta macro escribe el valor 1500 en la celda A1<\/p><p data-css=\"tve-u-161d9cf82cc\" style=\"text-align: justify;\">Range(\"A1\").Value = 1500<\/p><p data-css=\"tve-u-161d9cf82cc\" style=\"text-align: justify;\">End Sub<\/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-161d9d10b19\"><ul class=\"tcb-styled-list\"><li class=\"thrv-styled-list-item\"><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-161d9d0f0be\"><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-169035ff433\"><div style=\"text-align: justify;\">Si la Macro est\u00e1 bien copiada ver\u00e1s que el Sub y el End Sub quedan de color azul y la segunda linea queda en verde. Los colores los asigna autom\u00e1ticamente el editor y te lo explicaremos m\u00e1s adelante.<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h6\"><h3 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-1939d8162ad\">Como Crear una Macro - Ejemplo en la Imagen<\/h3><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-161d9d41efe\"><span class=\"tve_image_frame\"><img loading=\"lazy\" decoding=\"async\" class=\"tve_image wp-image-34604\" alt=\"Como Crear una Macro\" width=\"628\" height=\"236\" title=\"Primer codigo en VBA\" data-id=\"34604\" src=\"\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2018\/02\/Primer-Codigo-en-VBA2.png\" data-width=\"628\" data-height=\"236\" data-init-width=\"628\" data-init-height=\"236\" style=\"aspect-ratio: auto 628 \/ 236;\"><\/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-161d9d621ec\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9d621ef\" style=\"text-align: justify;\">De momento no te preocupes por el c\u00f3digo escrito, m\u00e1s adelante te ense\u00f1aremos a interpretarlo. Ahora que ya tienes la Macro escrita pasemos a la siguiente secci\u00f3n para ver como ejecutarla.<\/p><p data-css=\"tve-u-161d9d621ef\" style=\"text-align: justify;\">Si no entendiste algo, por favor revisa detenidamente todo este articulo de <strong>Como crear una Macro<\/strong>. La siguiente secci\u00f3n lo veremos en el pr\u00f3ximo tema. Te dejo el enlace para que puedas verlo:<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-button tve_ea_thrive_animation tve_anim_appear\" data-css=\"tve-u-16903709e10\" data-button-style=\"tcb-saved-button-template-28\" style=\"\" id=\"tema2\" data-tcb_hover_state_parent=\"\">\n<a href=\"http:\/\/aplicaexcelcontable.com\/blog\/programar-en-excel-como-ejecutar-una-macro.html\" class=\"tcb-button-link tve_evt_manager_listen tve_et_tve-viewport\" data-tcb-events=\"__TCB_EVENT_[{&quot;t&quot;:&quot;tve-viewport&quot;,&quot;config&quot;:{&quot;anim&quot;:&quot;appear&quot;,&quot;loop&quot;:1},&quot;a&quot;:&quot;thrive_animation&quot;}]_TNEVE_BCT__\" target=\"_blank\">\n<span class=\"tcb-button-texts\"><span class=\"tcb-button-text thrv-inline-text\" data-css=\"tve-u-16903709e16\"><strong>Pulsa clic aqu\u00ed P\/Ver el siguiente Tema<\/strong><\/span><\/span>\n<\/a>\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-161d9fb6f8b\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d9fb6f8e\" style=\"text-align: justify;\">Me gustar\u00eda saber que piensas de este articulo \"Programar en Excel - Como crear una Macro\".<\/p><p data-css=\"tve-u-161d9fb6f8e\" style=\"text-align: justify;\">Por lo tanto:<\/p><p data-css=\"tve-u-161d9fb6f8e\" style=\"text-align: justify;\">D\u00e9jame tu comentario con dudas, cr\u00edticas constructivas y sugerencia en la secci\u00f3n de comentarios o bien en el Chat. Al mismo tiempo te invito a que visites nuestra pagina de Facebook, <span data-css=\"tve-u-161d9fc415a\" style=\"color: rgb(0, 23, 255);\"><a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\"><strong>pulsando clic aqu\u00ed<\/strong><\/a><\/span>.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\" data-css=\"tve-u-1939d81d89a\" style=\"\">\n\t<div class=\"tve-content-box-background\"><\/div>\n\t<div class=\"tve-cb\" style=\"\" data-css=\"tve-u-1939d81d898\"><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-1939d81d89b\">&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-1939d81d89c\">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-1939d81d89d\" 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-1939d81d89f\">whatsapp<\/span> o bien al correo electr\u00f3nico rogerperez@aplicaexcelcontable.com.<span style=\"--tcb-text-highlight-color: transparent !important;\" data-css=\"tve-u-1939d81d8a0\"><\/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-161d9fc415a\"] { color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161d9d41efe\"] + div { clear: none; }[data-css=\"tve-u-161d9d41efe\"] { float: none; width: 628px; margin-left: auto !important; margin-right: auto !important; }:not(#tve) [data-css=\"tve-u-161d9d10b19\"] p, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] li, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] blockquote, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] address, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h1, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h2, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h3, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h4, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h5, :not(#tve) [data-css=\"tve-u-161d9d10b19\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9d0f0be\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161d9ce601f\"] p, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] li, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] blockquote, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] address, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h1, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h2, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h3, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h4, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h5, :not(#tve) [data-css=\"tve-u-161d9ce601f\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9ce4b08\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9ce4b04\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9cd2587\"] + div { clear: none; }[data-css=\"tve-u-161d9cd2587\"] { float: none; width: 288px; margin-left: auto !important; margin-right: auto !important; }[data-css=\"tve-u-161d9bc5c7d\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9bc1bd9\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161d9ba30cf\"] p, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] li, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] blockquote, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] address, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h1, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h2, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h3, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h4, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h5, :not(#tve) [data-css=\"tve-u-161d9ba30cf\"] h6 { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9ba1960\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9ba195f\"] { color: rgb(0, 0, 0); }[data-css=\"tve-u-161d9ba195a\"] { color: rgb(0, 0, 0); }:not(#tve) [data-css=\"tve-u-161d9a20427\"] { font-size: 38px !important; color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161d996bf88\"] { color: rgb(0, 0, 0) !important; }[data-css=\"tve-u-161d9967b58\"] { color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161d98d8e9e\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d98d8e9f\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9a33ca2\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9a33ca4\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9b34def\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9b34df1\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9b55f65\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9b55f67\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9b92f81\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9b92f83\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9cf82ca\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9cf82cc\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9d621ec\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9d621ef\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d9fb6f8b\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d9fb6f8e\"] { color: rgb(10, 0, 0) !important; }:not(#tve) [data-css=\"tve-u-169032d3b4b\"] { font-size: 42px !important; color: rgb(255, 0, 0) !important; }[data-css=\"tve-u-16903709e10\"] { display: block; max-width: 382px; width: 382px; }:not(#tve) [data-css=\"tve-u-16903709e10\"]:hover .tcb-button-link { color: rgb(255, 255, 255) !important; background-color: rgb(3, 255, 51) !important; background-image: none !important; border: 3px solid rgb(3, 255, 51) !important; }[data-css=\"tve-u-16903709e10\"] .tcb-button-link { border: 3px solid rgb(3, 255, 51); border-radius: 10px; overflow: hidden; min-height: 54.7619px; font-size: 1.33333em; padding-top: 0px; padding-bottom: 0px; background-image: none !important; background-color: rgb(255, 255, 255) !important; }:not(#tve) [data-css=\"tve-u-16903709e10\"] .tcb-button-link { color: rgb(0, 23, 255) !important; }:not(#tve) [data-css=\"tve-u-16903709e16\"] { color: rgb(3, 255, 51) !important; font-size: 19px !important; }:not(#tve) [data-css=\"tve-u-16903709e10\"]:hover .tcb-button-link span { color: rgb(255, 255, 255) !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; }:not(#tve) [data-css=\"tve-u-1939d7f9d62\"] { font-size: 38px !important; }:not(#tve) [data-css=\"tve-u-1939d7ff142\"] { font-size: 38px !important; }:not(#tve) [data-css=\"tve-u-1939d80f385\"] { font-size: 32px !important; }:not(#tve) [data-css=\"tve-u-1939d8162ad\"] { font-size: 32px !important; }:not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] label { font-size: var(--tve-font-size,20px); }[data-css=\"tve-u-1939d81d898\"] { --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-1939d81d898\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] label, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] h1, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] h2, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] h3, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] h4, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] h5, :not(#tve) .thrv-content-box [data-css=\"tve-u-1939d81d898\"] 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-1939d81d898\"] p { padding: 0px 0px 11px !important; margin: 0px !important; }[data-css=\"tve-u-1939d81d89a\"] { margin-top: 0px !important; margin-bottom: 20px !important; padding: 0px !important; }[data-css=\"tve-u-1939d81d89b\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-1939d81d89c\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-1939d81d89d\"] { --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-1939d81d89f\"] { --tcb-text-highlight-color: rgb(30,184,76) !important; }[data-css=\"tve-u-1939d81d8a0\"] { --tcb-text-highlight-color: transparent !important; }}@media (max-width: 1023px){:not(#tve) [data-css=\"tve-u-169032d3b4b\"] { font-size: 25px !important; }:not(#tve) [data-css=\"tve-u-161d9a20427\"] { font-size: 22px !important; }}@media (max-width: 767px){:not(#tve) [data-css=\"tve-u-161d9a20427\"] { font-size: 20px !important; }:not(#tve) [data-css=\"tve-u-16903709e10\"] .tcb-button-link { font-size: 20px; }[data-css=\"tve-u-16903709e10\"] { display: block; max-width: 292px; width: 292px; }:not(#tve) [data-css=\"tve-u-16903709e16\"] { font-size: 14px !important; }:not(#tve) [data-css=\"tve-u-169032d3b4b\"] { font-size: 23px !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":[22,4],"tags":[293,292,178,295,294],"class_list":["post-2258","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-curso-basico-de-vba","category-programar-en-excel","tag-aprender-excel","tag-excel-y-contabilidad","tag-macro","tag-plantillas-excel","tag-programar-en-excel","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/2258","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=2258"}],"version-history":[{"count":0,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/2258\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media\/34603"}],"wp:attachment":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media?parent=2258"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/categories?post=2258"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/tags?post=2258"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}