{"id":2241,"date":"2013-11-11T06:03:05","date_gmt":"2013-11-11T12:03:05","guid":{"rendered":"http:\/\/aplicaexcelcontable.com\/blog\/?p=2241"},"modified":"2024-12-17T15:30:43","modified_gmt":"2024-12-17T21:30:43","slug":"componentes-de-una-macro-en-vba","status":"publish","type":"post","link":"https:\/\/aplicaexcelcontable.com\/blog\/componentes-de-una-macro-en-vba.html","title":{"rendered":"Curso Basico de VBA &#8211; Componentes de una Macro"},"content":{"rendered":"<h1 style=\"text-align: center;\">Conociendo los componentes de una Macro<\/h1>\n<p style=\"text-align: justify;\">Primeramente, quiero preguntar que si ya viste los dos temas anteriores? Si de verdad quieres aprender a Programar en Excel, te invito a que empieces desde el primer tema.<\/p>\n<p style=\"text-align: justify;\">Hoy vamos a hablar de &nbsp;los tres componentes de una Macro, es vital que conozcas totalmente el concepto de Macro, para que de verdad logres Programar en Excel.<\/p>\n<h2 style=\"text-align: center;\">Componentes de una macro &#8211; Objetos, M\u00e9todos y Propiedades (OMP)<\/h2>\n<p><span><img decoding=\"async\" alt=\"Componentes de una macro\" data-id=\"59831\" width=\"374\" data-init-width=\"629\" height=\"263\" data-init-height=\"443\" title=\"Componentes de una macro\" loading=\"lazy\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2013\/11\/Componentes-de-una-macro.png\" data-width=\"374\" data-height=\"263\" style=\"aspect-ratio: auto 629 \/ 443;\"><\/span><\/p>\n<p style=\"text-align: justify;\">Cuando hablamos de Macros hablamos de Objetos, M\u00e9todos y Propiedades (OMP Componentes de una macro). Estos son los 3 conceptos generales m\u00e1s importantes que debes conocer a la hora de programar las Macros.<\/p>\n<p style=\"text-align: justify;\">De momento solo te daremos una sencilla definici\u00f3n y luego iremos profundizando m\u00e1s en ellos.<\/p>\n<p style=\"text-align: justify;\">Hay un ejemplo muy pr\u00e1ctico para comprender lo que son los Objetos, M\u00e9todos y Propiedades (OMP).<\/p>\n<p style=\"text-align: justify;\">Supongamos que tenemos una canasta con frutas. \u00bfCuales ser\u00edan los OPM de la misma?<\/p>\n<p><span style=\"width: 100%;\"><img loading=\"lazy\" decoding=\"async\" alt=\"Componentes de una macro\" width=\"214\" height=\"235\" title=\"Canasta con Frutas - Programacion en Excel\" data-id=\"41076\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/02\/Canasta-con-Frutas-Programacion-en-Excel.jpg\" style=\"aspect-ratio: auto 214 \/ 235;\" data-width=\"214\" data-height=\"235\" data-init-width=\"214\" data-init-height=\"235\"><\/span><\/p>\n<ul>\n<li><span><strong>Objetos:<\/strong> Los objetos de la canasta con frutas ser\u00edan las mismas Frutas (Manzanas, Naranjas, Peras\u2026).<\/span><\/li>\n<li><span><strong>Propiedades:<\/strong> Las propiedades ser\u00edan las caracter\u00edsticas de las Frutas (Color, Olor, Sabor, Textura\u2026).<\/span><\/li>\n<li><span><strong>M\u00e9todos:<\/strong> Finalmente los m\u00e9todos son las acciones que podr\u00edamos ejercer sobre las Frutas (Comprarlas, Venderlas, Comerlas, Almacenarlas, Limpiarlas, Quitarles la piel\u2026).<\/span><\/li>\n<\/ul>\n<h2 style=\"text-align: center;\">Componentes de una Macro &#8211; Ejemplo de algunos OMP de Excel<\/h2>\n<ul>\n<li style=\"\"><span>1<\/span><span><strong>Objetos:<\/strong> Pr\u00e1cticamente cada cosa que veas en Excel es un objeto.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\"><strong>Los ejemplos de objetos son:<\/strong> Un Libro Excel, una Hoja, un Rango, una Celda, un Men\u00fa, un Gr\u00e1fico, una Tabla Din\u00e1mica, un Cuadro de Di\u00e1logo, las Etiquetas de Hojas, las Columnas, las Filas, etc.<\/p>\n<p style=\"text-align: justify;\">Y en fin, cada partecita de Excel es un objeto, un objeto es algo que puedes ver e identificar con un nombre.<\/p>\n<ul>\n<li><span>2<\/span><span><strong>Propiedades:<\/strong> Las propiedades son las caracter\u00edsticas de los objetos.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Como ejemplo, para el objeto \u00abCelda\u00bb algunas de sus propiedades ser\u00edan: Alto, Ancho, Color, Bloqueada o desbloqueada, Vac\u00eda, con un N\u00famero o con una F\u00f3rmula, etc.<\/p>\n<p style=\"text-align: justify;\">Y por ejemplo para el objeto \u00abHoja\u00bb algunas de sus propiedades ser\u00edan: Visible u oculta, con o sin l\u00edneas de divisi\u00f3n, con o sin barras de desplazamiento vertical y horizontal, etc.<\/p>\n<ul>\n<li style=\"\"><span>3<\/span><span><strong>M\u00e9todos: <\/strong>Un m\u00e9todo es una acci\u00f3n que podemos realizar sobre el objeto o una de sus propiedades.<\/span><\/li>\n<\/ul>\n<p style=\"text-align: justify;\">Por ejemplo sobre el objeto \u00abHoja\u00bb podemos: Activar, Mover, Copiar o Borrar, Guardar, Insertar, Pegar, etc. De momento estas definiciones son suficientes para empezar a entender algunos conceptos.<\/p>\n<p style=\"text-align: justify;\">Recu\u00e9rdalas bien porque las usaremos en todo este Curso B\u00e1sico de VBA. En la medida que adquieras mayores conocimientos sobre como Programar Macros ir\u00e1s manejando y conociendo cada vez m\u00e1s objetos, con sus propiedades y sus m\u00e9todos.&nbsp;<\/p>\n<p style=\"text-align: justify;\">En definitiva, de eso se trata Programar una Macro, conocer el nombre del objeto, conocer el nombre de alguna propiedad del mismo que quieras modificar y tambi\u00e9n el nombre de alg\u00fan m\u00e9todo que desees aplicarle.<\/p>\n<h2 style=\"\">Para Finalizar con los componentes de una macro:<\/h2>\n<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">Me gustar\u00eda saber que piensas de este articulo \u00abComponentes de una macro en VBA\u00bb.<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">Por lo tanto:<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">D\u00e9jame tu comentario con dudas, cr\u00edticas constructivas y sugerencia en la secci\u00f3n de comentarios o bien en el Chat. <\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"color: rgb(0, 0, 0);\">Al mismo tiempo te invito a que visites nuestra pagina de Facebook,&nbsp;<\/span><span style=\"color: rgb(0, 23, 255);\"><a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\" style=\"outline: none;\" rel=\"noopener\"><strong>pulsando clic aqu\u00ed<\/strong><\/a><\/span><span style=\"color: rgb(0, 0, 0);\">.<\/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>Conociendo los componentes de una Macro Primeramente, quiero preguntar que si ya viste los dos temas anteriores? Si de verdad quieres aprender a Programar en Excel, te invito a que empieces desde el primer tema. Hoy vamos a hablar de &nbsp;los tres componentes de una Macro, es vital que conozcas totalmente el concepto de Macro, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":59831,"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-168edb48cfc\" class=\"\">Conociendo los componentes de una Macro<\/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-161d774aebc\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d774aebe\" style=\"text-align: justify;\">Primeramente, quiero preguntar que si ya viste los dos temas anteriores? Si de verdad quieres aprender a Programar en Excel, te invito a que empieces desde el primer tema.<\/p><p data-css=\"tve-u-161d774aebe\" style=\"text-align: justify;\">Hoy vamos a hablar de &nbsp;los tres componentes de una Macro, es vital que conozcas totalmente el concepto de Macro, para que de verdad logres Programar en Excel.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h2\"><h2 data-css=\"tve-u-161d7769072\" style=\"text-align: center;\" class=\"\">Componentes de una macro - Objetos, M\u00e9todos y Propiedades (OMP)<\/h2><\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-19399f3c57c\" style=\"\"><span class=\"tve_image_frame\"><img decoding=\"async\" class=\"tve_image wp-image-59831 tcb-moved-image\" alt=\"Componentes de una macro\" data-id=\"59831\" width=\"374\" data-init-width=\"629\" height=\"263\" data-init-height=\"443\" title=\"Componentes de una macro\" loading=\"lazy\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2013\/11\/Componentes-de-una-macro.png\" data-width=\"374\" data-height=\"263\" style=\"aspect-ratio: auto 629 \/ 443;\" data-css=\"tve-u-19399f3cfe8\"><\/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-161d77723da\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d77723dc\" style=\"text-align: justify;\">Cuando hablamos de Macros hablamos de Objetos, M\u00e9todos y Propiedades (OMP Componentes de una macro). Estos son los 3 conceptos generales m\u00e1s importantes que debes conocer a la hora de programar las Macros.<\/p><p data-css=\"tve-u-161d77723dc\" style=\"text-align: justify;\">De momento solo te daremos una sencilla definici\u00f3n y luego iremos profundizando m\u00e1s en ellos.<\/p><p data-css=\"tve-u-161d77723dc\" style=\"text-align: justify;\">Hay un ejemplo muy pr\u00e1ctico para comprender lo que son los Objetos, M\u00e9todos y Propiedades (OMP).<\/p><p data-css=\"tve-u-161d77723dc\" style=\"text-align: justify;\">Supongamos que tenemos una canasta con frutas. \u00bfCuales ser\u00edan los OPM de la misma?<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper tve_image_caption\" data-css=\"tve-u-168ee13d272\"><span class=\"tve_image_frame\" style=\"width: 100%;\"><img loading=\"lazy\" decoding=\"async\" class=\"tve_image wp-image-41076\" alt=\"Componentes de una macro\" width=\"214\" height=\"235\" title=\"Canasta con Frutas - Programacion en Excel\" data-id=\"41076\" src=\"https:\/\/aplicaexcelcontable.com\/blog\/wp-content\/uploads\/2019\/02\/Canasta-con-Frutas-Programacion-en-Excel.jpg\" style=\"aspect-ratio: auto 214 \/ 235;\" data-width=\"214\" data-height=\"235\" data-init-width=\"214\" data-init-height=\"235\"><\/span><\/div><div class=\"thrv_wrapper thrv-styled_list\" data-icon-code=\"icon-check\" data-css=\"tve-u-168ee5febb0\"><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-no-save tcb-icon-inherit-style\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-id=\"icon-check\" data-name=\"\"><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><\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete tcb-no-save\" data-css=\"tve-u-168ee60eb97\"><div style=\"text-align: justify;\"><strong>Objetos:<\/strong> Los objetos de la canasta con frutas ser\u00edan las mismas Frutas (Manzanas, Naranjas, Peras\u2026).<\/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-no-save tcb-icon-inherit-style\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-id=\"icon-check\" data-name=\"\"><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><\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete tcb-no-save\" data-css=\"tve-u-168ee60eb97\"><div style=\"text-align: justify;\"><strong>Propiedades:<\/strong> Las propiedades ser\u00edan las caracter\u00edsticas de las Frutas (Color, Olor, Sabor, Textura\u2026).<\/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-no-save tcb-icon-inherit-style\"><svg class=\"tcb-icon\" viewBox=\"0 0 32 32\" data-id=\"icon-check\" data-name=\"\"><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><\/svg><\/div><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-styled-list-icon-text tcb-no-delete tcb-no-save\" data-css=\"tve-u-168ee60eb97\"><div style=\"text-align: justify;\"><strong>M\u00e9todos:<\/strong> Finalmente los m\u00e9todos son las acciones que podr\u00edamos ejercer sobre las Frutas (Comprarlas, Venderlas, Comerlas, Almacenarlas, Limpiarlas, Quitarles la piel\u2026).<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h3\"><h2 class=\"\" style=\"text-align: center;\" data-css=\"tve-u-19399f6d847\">Componentes de una Macro - Ejemplo de algunos OMP de Excel<\/h2><\/div><div class=\"thrv_wrapper thrv-numbered_list\" data-start-number=\"1\" data-number-increment=\"1\" data-css=\"tve-u-168ee78116a\" style=\"\"><ul class=\"tcb-numbered-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-19399f74c6d\" style=\"\"><div class=\"tcb-numbered-list-number thrv-disabled-label thrv_wrapper tcb-no-delete tcb-no-clone tve_no_drag\" data-css=\"tve-u-19399f7f86f\" style=\"\"><span class=\"tcb-numbered-list-index\">1<\/span><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-numbered-list-text tcb-no-delete\" data-css=\"tve-u-168ee91bf21\"><div style=\"text-align: justify;\"><strong>Objetos:<\/strong> Pr\u00e1cticamente cada cosa que veas en Excel es un objeto.<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-19399f74160\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161d78b8f02\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\"><strong>Los ejemplos de objetos son:<\/strong> Un Libro Excel, una Hoja, un Rango, una Celda, un Men\u00fa, un Gr\u00e1fico, una Tabla Din\u00e1mica, un Cuadro de Di\u00e1logo, las Etiquetas de Hojas, las Columnas, las Filas, etc.<\/p><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">Y en fin, cada partecita de Excel es un objeto, un objeto es algo que puedes ver e identificar con un nombre.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-numbered_list\" data-start-number=\"2\" data-number-increment=\"1\" data-css=\"tve-u-19399f932fa\" style=\"\"><ul class=\"tcb-numbered-list\"><li class=\"thrv-styled-list-item\"><div class=\"tcb-numbered-list-number thrv-disabled-label thrv_wrapper tcb-no-delete tcb-no-clone tve_no_drag\" data-css=\"tve-u-19399f842ef\" style=\"\"><span class=\"tcb-numbered-list-index\">2<\/span><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-numbered-list-text tcb-no-delete\" data-css=\"tve-u-168eea36975\"><div style=\"text-align: justify;\"><strong>Propiedades:<\/strong> Las propiedades son las caracter\u00edsticas de los objetos.<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-19399f964ce\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161d78b8f02\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">Como ejemplo, para el objeto \"Celda\" algunas de sus propiedades ser\u00edan: Alto, Ancho, Color, Bloqueada o desbloqueada, Vac\u00eda, con un N\u00famero o con una F\u00f3rmula, etc.<\/p><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">Y por ejemplo para el objeto \"Hoja\" algunas de sus propiedades ser\u00edan: Visible u oculta, con o sin l\u00edneas de divisi\u00f3n, con o sin barras de desplazamiento vertical y horizontal, etc.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-numbered_list\" data-start-number=\"3\" data-number-increment=\"1\" data-css=\"tve-u-168eea974be\"><ul class=\"tcb-numbered-list\"><li class=\"thrv-styled-list-item\" data-css=\"tve-u-19399fa06aa\" style=\"\"><div class=\"tcb-numbered-list-number thrv-disabled-label thrv_wrapper tcb-no-delete tcb-no-clone tve_no_drag\" data-css=\"tve-u-19399f998f3\" style=\"\"><span class=\"tcb-numbered-list-index\">3<\/span><\/div><span class=\"thrv-advanced-inline-text tve_editable tcb-numbered-list-text tcb-no-delete\" data-css=\"tve-u-168eea36975\"><div style=\"text-align: justify;\"><strong>M\u00e9todos: <\/strong>Un m\u00e9todo es una acci\u00f3n que podemos realizar sobre el objeto o una de sus propiedades.<\/div><\/span><\/li><\/ul><\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box\" data-css=\"tve-u-19399f9c8d9\" style=\"\">\n<div class=\"tve-content-box-background\"><\/div>\n<div class=\"tve-cb tve_empty_dropzone\" data-css=\"tve-u-161d78b8f02\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">Por ejemplo sobre el objeto \"Hoja\" podemos: Activar, Mover, Copiar o Borrar, Guardar, Insertar, Pegar, etc. De momento estas definiciones son suficientes para empezar a entender algunos conceptos.<\/p><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">Recu\u00e9rdalas bien porque las usaremos en todo este Curso B\u00e1sico de VBA. En la medida que adquieras mayores conocimientos sobre como Programar Macros ir\u00e1s manejando y conociendo cada vez m\u00e1s objetos, con sus propiedades y sus m\u00e9todos.&nbsp;<\/p><p data-css=\"tve-u-161d78b8f04\" style=\"text-align: justify;\">En definitiva, de eso se trata Programar una Macro, conocer el nombre del objeto, conocer el nombre de alguna propiedad del mismo que quieras modificar y tambi\u00e9n el nombre de alg\u00fan m\u00e9todo que desees aplicarle.<\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv-button tve_ea_thrive_animation tve_anim_rotate\" data-css=\"tve-u-168eedffe0d\" 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-conociendo-el-lenguaje-de-vba.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;rotate&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-168eedffe11\"><strong>Pulsa clic aqu\u00ed P\/Ver el Tema 4<\/strong><\/span><\/span>\n<\/a>\n<\/div><div class=\"thrv_wrapper thrv_text_element\" data-tag=\"h4\"><h2 class=\"\" style=\"\" data-css=\"tve-u-19399fab10b\">Para Finalizar con los componentes de 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-161d79fde0f\"><div class=\"thrv_wrapper thrv_text_element tve_empty_dropzone\"><p data-css=\"tve-u-161d79fde10\" style=\"text-align: justify;\"><span data-css=\"tve-u-161d7a2fa8e\" style=\"color: rgb(0, 0, 0);\">Me gustar\u00eda saber que piensas de este articulo \"Componentes de una macro en VBA\".<br><\/span><\/p><p data-css=\"tve-u-161d79fde10\" style=\"text-align: justify;\"><span data-css=\"tve-u-161d7a2fa8e\" style=\"color: rgb(0, 0, 0);\">Por lo tanto:<br><\/span><\/p><p data-css=\"tve-u-161d79fde10\" style=\"text-align: justify;\"><span data-css=\"tve-u-161d7a2fa8e\" style=\"color: rgb(0, 0, 0);\">D\u00e9jame tu comentario con dudas, cr\u00edticas constructivas y sugerencia en la secci\u00f3n de comentarios o bien en el Chat. <\/span><\/p><p data-css=\"tve-u-161d79fde10\" style=\"text-align: justify;\"><span data-css=\"tve-u-161d7a2fa8e\" style=\"color: rgb(0, 0, 0);\">Al mismo tiempo te invito a que visites nuestra pagina de Facebook,&nbsp;<\/span><span data-css=\"tve-u-161d7a2fa93\" style=\"color: rgb(0, 23, 255);\"><a href=\"https:\/\/www.facebook.com\/AplicaExceContable\/\" target=\"_blank\" class=\"\" style=\"outline: none;\"><strong>pulsando clic aqu\u00ed<\/strong><\/a><\/span><span data-css=\"tve-u-161d7a2faa5\" style=\"color: rgb(0, 0, 0);\">.<\/span><\/p><\/div><\/div>\n<\/div><div class=\"thrv_wrapper thrv_contentbox_shortcode thrv-content-box tve-elem-default-pad\" data-css=\"tve-u-19399fcb5b0\" style=\"\">\n\t<div class=\"tve-content-box-background\"><\/div>\n\t<div class=\"tve-cb\" style=\"\" data-css=\"tve-u-19399fcb5af\"><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-19399fcb5b1\">&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-19399fcb5b3\">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-19399fcb5b4\" 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-19399fcb5b5\">whatsapp<\/span> o bien al correo electr\u00f3nico rogerperez@aplicaexcelcontable.com.<span style=\"--tcb-text-highlight-color: transparent !important;\" data-css=\"tve-u-19399fcb5b6\"><\/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-161d7a2fa93\"] { color: rgb(0, 23, 255) !important; }:not(#tve) [data-css=\"tve-u-161d7769072\"] { font-size: 38px !important; color: rgb(0, 23, 255) !important; }[data-css=\"tve-u-161d774aebc\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d774aebe\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d77723da\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d77723dc\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d78b8f02\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d78b8f04\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d79fde0f\"] p { margin: 0px 0px 11px !important; padding: 0px !important; }:not(#tve) [data-css=\"tve-u-161d79fde10\"] { color: rgb(10, 0, 0) !important; }[data-css=\"tve-u-161d7a2fa8e\"] { color: rgb(0, 0, 0) !important; }[data-css=\"tve-u-161d7a2faa5\"] { color: rgb(0, 0, 0) !important; }:not(#tve) [data-css=\"tve-u-168edb48cfc\"] { font-size: 42px !important; color: rgb(255, 0, 0) !important; }[data-css=\"tve-u-168ee13d272\"] { width: 214px; float: none; margin-left: auto !important; margin-right: auto !important; }:not(#tve) [data-css=\"tve-u-168ee5febb0\"] p, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] li, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] blockquote, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] address, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] .tcb-plain-text, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] label, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h1, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h2, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h3, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h4, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h5, :not(#tve) [data-css=\"tve-u-168ee5febb0\"] h6 { color: rgb(10, 0, 0); }:not(#tve) [data-css=\"tve-u-168ee78116a\"] p, :not(#tve) [data-css=\"tve-u-168ee78116a\"] li, :not(#tve) [data-css=\"tve-u-168ee78116a\"] blockquote, :not(#tve) [data-css=\"tve-u-168ee78116a\"] address, :not(#tve) [data-css=\"tve-u-168ee78116a\"] .tcb-plain-text, :not(#tve) [data-css=\"tve-u-168ee78116a\"] label, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h1, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h2, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h3, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h4, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h5, :not(#tve) [data-css=\"tve-u-168ee78116a\"] h6 { color: rgb(10, 0, 0); }:not(#tve) [data-css=\"tve-u-168eea36975\"] { color: rgb(10, 0, 0) !important; }:not(#tve) [data-css=\"tve-u-168eea974be\"] p, :not(#tve) [data-css=\"tve-u-168eea974be\"] li, :not(#tve) [data-css=\"tve-u-168eea974be\"] blockquote, :not(#tve) [data-css=\"tve-u-168eea974be\"] address, :not(#tve) [data-css=\"tve-u-168eea974be\"] .tcb-plain-text, :not(#tve) [data-css=\"tve-u-168eea974be\"] label, :not(#tve) [data-css=\"tve-u-168eea974be\"] h1, :not(#tve) [data-css=\"tve-u-168eea974be\"] h2, :not(#tve) [data-css=\"tve-u-168eea974be\"] h3, :not(#tve) [data-css=\"tve-u-168eea974be\"] h4, :not(#tve) [data-css=\"tve-u-168eea974be\"] h5, :not(#tve) [data-css=\"tve-u-168eea974be\"] h6 { color: rgb(10, 0, 0); }[data-css=\"tve-u-168eedffe0d\"] { display: block; max-width: 415px; width: 415px; }:not(#tve) [data-css=\"tve-u-168eedffe0d\"]:hover .tcb-button-link { color: rgb(255, 255, 255) !important; background-color: rgb(246, 249, 19) !important; background-image: none !important; border: 3px solid rgb(246, 249, 19) !important; }[data-css=\"tve-u-168eedffe0d\"] .tcb-button-link { border: 3px solid rgb(246, 249, 19); 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-168eedffe0d\"] .tcb-button-link { color: rgb(0, 23, 255) !important; }:not(#tve) [data-css=\"tve-u-168eedffe11\"] { color: rgb(246, 249, 19) !important; }:not(#tve) [data-css=\"tve-u-168eedffe0d\"]: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; }[data-css=\"tve-u-19399f3c57c\"] { width: 374px; --tve-border-radius: 60px; border-radius: 60px; overflow: hidden; --tve-alignment: center; float: none; margin: 0px auto 10px !important; }:not(#tve) [data-css=\"tve-u-19399f6d847\"] { font-size: 38px !important; color: rgb(8, 0, 0) !important; --tcb-applied-color: rgb(8,0,0) !important; --tve-applied-color: rgb(8,0,0) !important; }[data-css=\"tve-u-19399f74160\"] { margin-top: 0px !important; margin-bottom: 0px !important; }[data-css=\"tve-u-19399f74c6d\"] { padding-bottom: 0px !important; }[data-css=\"tve-u-168ee78116a\"] { margin-bottom: 0px !important; }[data-css=\"tve-u-19399f7f86f\"] { padding-bottom: 10px !important; padding-top: 1px !important; }[data-css=\"tve-u-19399f842ef\"] { padding-top: 1px !important; }:not(#tve) [data-css=\"tve-u-19399f932fa\"] p, :not(#tve) [data-css=\"tve-u-19399f932fa\"] li, :not(#tve) [data-css=\"tve-u-19399f932fa\"] blockquote, :not(#tve) [data-css=\"tve-u-19399f932fa\"] address, :not(#tve) [data-css=\"tve-u-19399f932fa\"] .tcb-plain-text, :not(#tve) [data-css=\"tve-u-19399f932fa\"] label, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h1, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h2, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h3, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h4, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h5, :not(#tve) [data-css=\"tve-u-19399f932fa\"] h6 { color: rgb(10, 0, 0); }[data-css=\"tve-u-19399f932fa\"] { margin-bottom: 0px !important; padding-bottom: 0px !important; }[data-css=\"tve-u-19399f964ce\"] { margin-top: 0px !important; margin-bottom: 0px !important; }[data-css=\"tve-u-19399f998f3\"] { padding-top: 1px !important; }[data-css=\"tve-u-19399f9c8d9\"] { margin-top: 0px !important; }[data-css=\"tve-u-19399fa06aa\"] { padding-bottom: 0px !important; }:not(#tve) [data-css=\"tve-u-19399fab10b\"] { font-size: 38px !important; }:not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] label { font-size: var(--tve-font-size,20px); }[data-css=\"tve-u-19399fcb5af\"] { --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-19399fcb5af\"] p, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] li, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] blockquote, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] address, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] .tcb-plain-text, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] label, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] h1, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] h2, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] h3, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] h4, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] h5, :not(#tve) .thrv-content-box [data-css=\"tve-u-19399fcb5af\"] 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-19399fcb5af\"] p { padding: 0px 0px 11px !important; margin: 0px !important; }[data-css=\"tve-u-19399fcb5b0\"] { margin-top: 20px !important; margin-bottom: 20px !important; padding: 0px !important; }[data-css=\"tve-u-19399fcb5b1\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-19399fcb5b3\"] { --tcb-text-highlight-color: rgb(237,243,13) !important; }[data-css=\"tve-u-19399fcb5b4\"] { --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-19399fcb5b5\"] { --tcb-text-highlight-color: rgb(30,184,76) !important; }[data-css=\"tve-u-19399fcb5b6\"] { --tcb-text-highlight-color: transparent !important; }}@media (max-width: 1023px){:not(#tve) [data-css=\"tve-u-168edb48cfc\"] { font-size: 25px !important; }:not(#tve) [data-css=\"tve-u-161d7769072\"] { font-size: 22px !important; }}@media (max-width: 767px){:not(#tve) [data-css=\"tve-u-161d7769072\"] { font-size: 20px !important; }:not(#tve) [data-css=\"tve-u-168eedffe0d\"] .tcb-button-link { font-size: 20px; }[data-css=\"tve-u-168eedffe0d\"] { display: block; max-width: 292px; width: 292px; }:not(#tve) [data-css=\"tve-u-168eedffe11\"] { font-size: 18px !important; }:not(#tve) [data-css=\"tve-u-168edb48cfc\"] { 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,295,294],"class_list":["post-2241","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-plantillas-excel","tag-programar-en-excel","post-wrapper","thrv_wrapper"],"_links":{"self":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/2241","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=2241"}],"version-history":[{"count":0,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/posts\/2241\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media\/59831"}],"wp:attachment":[{"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/media?parent=2241"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/categories?post=2241"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aplicaexcelcontable.com\/blog\/wp-json\/wp\/v2\/tags?post=2241"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}