{"id":3851,"date":"2020-08-11T06:53:13","date_gmt":"2020-08-11T06:53:13","guid":{"rendered":"http:\/\/www.fditf.com\/bi\/?p=3851"},"modified":"2023-12-23T00:34:38","modified_gmt":"2023-12-23T00:34:38","slug":"como-ponerle-contrasena-password-a-una-macro","status":"publish","type":"post","link":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/","title":{"rendered":"C\u00f3mo ponerle contrase\u00f1a (password) a una macro"},"content":{"rendered":"<h2>Ponerle password a una macro<\/h2>\n<p>Definitivamente s\u00ed. S\u00ed es posible agregar una contrase\u00f1a o password a una macro en Excel. De hecho, es un c\u00f3digo que <em>sobrepones<\/em> a una macro ya existente. Aqu\u00ed te comparto el c\u00f3digo, basta que lo modifiques con el contenido de tu macro, y quedar\u00e1 listo. El c\u00f3digo expuesto aqu\u00ed llama un inputbox, donde el usuario escribe la contrase\u00f1a, y esta se valida dentro del c\u00f3digo en VBA. Desde luego, deber\u00e1s proteger tu c\u00f3digo con una contrase\u00f1a, o el password para ejecutar la macro quedar\u00e1 accesible dentro del c\u00f3digo en VBA con una simple llamada al mismo (Alt + F11).<\/p>\n<h2>El c\u00f3digo<\/h2>\n<p>Este es el fragmento de c\u00f3digo que te permite a\u00f1adir un password a una macro.<\/p>\n<p><script src=\"https:\/\/gist.github.com\/vmburbinamx\/8d423d4f1bc4dd3e7566834997d60fbf.js\"><\/script><\/p>\n<p>\u00bfNecesitas el archivo? Desc\u00e1rgalo: <a  data-e-Disable-Page-Transition=\"true\" class=\"download-link\" title=\"\" href=\"https:\/\/www.fditf.com\/bi\/download\/3857\/?tmstv=1781089724\" rel=\"nofollow\" id=\"download-link-3857\" data-redirect=\"false\" >\n\tAgregar password a una macro en Excel<\/a>\n<\/p>\n<p>M\u00e1s informaci\u00f3n: info@fditf.com<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ponerle password a una macro Definitivamente s\u00ed. S\u00ed es posible agregar una contrase\u00f1a o password a una macro en Excel. De hecho, es un c\u00f3digo que sobrepones a una macro ya existente. Aqu\u00ed te comparto el c\u00f3digo, basta que lo <a href=\"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":3868,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,117],"tags":[7,8,21],"class_list":["post-3851","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel","category-vba","tag-excel","tag-macros","tag-vba"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>C\u00f3mo ponerle contrase\u00f1a (password) a una macro - Business Intelligence MX<\/title>\n<meta name=\"description\" content=\"C\u00f3mo ponerle password a una macro en excel con VBA, descarga la plantilla en Excel con el ejemplo y \u00fasalo en tus c\u00f3digos\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Agregar password a una macro\" \/>\n<meta property=\"og:description\" content=\"Descarga el ejemplo\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/\" \/>\n<meta property=\"og:site_name\" content=\"Business Intelligence MX\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/excelyfinanzasmx\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-08-11T06:53:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-23T00:34:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1279\" \/>\n\t<meta property=\"og:image:height\" content=\"853\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"V\u00edctor Urbina\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@excelfinanzasMX\" \/>\n<meta name=\"twitter:site\" content=\"@excelfinanzasMX\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"V\u00edctor Urbina\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/\"},\"author\":{\"name\":\"V\u00edctor Urbina\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#\\\/schema\\\/person\\\/ff30cbd17d9f746cacb687d5332924c5\"},\"headline\":\"C\u00f3mo ponerle contrase\u00f1a (password) a una macro\",\"datePublished\":\"2020-08-11T06:53:13+00:00\",\"dateModified\":\"2023-12-23T00:34:38+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/\"},\"wordCount\":158,\"publisher\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/security-1238201-1279x852-1.jpg\",\"keywords\":[\"Excel\",\"Macros\",\"VBA\"],\"articleSection\":[\"Excel\",\"VBA\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/\",\"url\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/\",\"name\":\"C\u00f3mo ponerle contrase\u00f1a (password) a una macro - Business Intelligence MX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/security-1238201-1279x852-1.jpg\",\"datePublished\":\"2020-08-11T06:53:13+00:00\",\"dateModified\":\"2023-12-23T00:34:38+00:00\",\"description\":\"C\u00f3mo ponerle password a una macro en excel con VBA, descarga la plantilla en Excel con el ejemplo y \u00fasalo en tus c\u00f3digos\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/security-1238201-1279x852-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2020\\\/08\\\/security-1238201-1279x852-1.jpg\",\"width\":1279,\"height\":853},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/excel\\\/como-ponerle-contrasena-password-a-una-macro\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"C\u00f3mo ponerle contrase\u00f1a (password) a una macro\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#website\",\"url\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/\",\"name\":\"Business Intelligence MX\",\"description\":\" \",\"publisher\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#organization\",\"name\":\"FDI Tecnolog\u00eda y Finanzas, SAS de CV\",\"url\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"http:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/logo.png\",\"contentUrl\":\"http:\\\/\\\/www.fditf.com\\\/bi\\\/wp-content\\\/uploads\\\/2018\\\/01\\\/logo.png\",\"width\":275,\"height\":168,\"caption\":\"FDI Tecnolog\u00eda y Finanzas, SAS de CV\"},\"image\":{\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/excelyfinanzasmx\\\/\",\"https:\\\/\\\/x.com\\\/excelfinanzasMX\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/#\\\/schema\\\/person\\\/ff30cbd17d9f746cacb687d5332924c5\",\"name\":\"V\u00edctor Urbina\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g\",\"caption\":\"V\u00edctor Urbina\"},\"url\":\"https:\\\/\\\/www.fditf.com\\\/bi\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo ponerle contrase\u00f1a (password) a una macro - Business Intelligence MX","description":"C\u00f3mo ponerle password a una macro en excel con VBA, descarga la plantilla en Excel con el ejemplo y \u00fasalo en tus c\u00f3digos","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/","og_locale":"en_US","og_type":"article","og_title":"Agregar password a una macro","og_description":"Descarga el ejemplo","og_url":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/","og_site_name":"Business Intelligence MX","article_publisher":"https:\/\/www.facebook.com\/excelyfinanzasmx\/","article_published_time":"2020-08-11T06:53:13+00:00","article_modified_time":"2023-12-23T00:34:38+00:00","og_image":[{"width":1279,"height":853,"url":"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg","type":"image\/jpeg"}],"author":"V\u00edctor Urbina","twitter_card":"summary_large_image","twitter_creator":"@excelfinanzasMX","twitter_site":"@excelfinanzasMX","twitter_misc":{"Written by":"V\u00edctor Urbina","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#article","isPartOf":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/"},"author":{"name":"V\u00edctor Urbina","@id":"https:\/\/www.fditf.com\/bi\/#\/schema\/person\/ff30cbd17d9f746cacb687d5332924c5"},"headline":"C\u00f3mo ponerle contrase\u00f1a (password) a una macro","datePublished":"2020-08-11T06:53:13+00:00","dateModified":"2023-12-23T00:34:38+00:00","mainEntityOfPage":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/"},"wordCount":158,"publisher":{"@id":"https:\/\/www.fditf.com\/bi\/#organization"},"image":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg","keywords":["Excel","Macros","VBA"],"articleSection":["Excel","VBA"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/","url":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/","name":"C\u00f3mo ponerle contrase\u00f1a (password) a una macro - Business Intelligence MX","isPartOf":{"@id":"https:\/\/www.fditf.com\/bi\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#primaryimage"},"image":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#primaryimage"},"thumbnailUrl":"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg","datePublished":"2020-08-11T06:53:13+00:00","dateModified":"2023-12-23T00:34:38+00:00","description":"C\u00f3mo ponerle password a una macro en excel con VBA, descarga la plantilla en Excel con el ejemplo y \u00fasalo en tus c\u00f3digos","breadcrumb":{"@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#primaryimage","url":"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg","contentUrl":"https:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2020\/08\/security-1238201-1279x852-1.jpg","width":1279,"height":853},{"@type":"BreadcrumbList","@id":"https:\/\/www.fditf.com\/bi\/excel\/como-ponerle-contrasena-password-a-una-macro\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.fditf.com\/bi\/"},{"@type":"ListItem","position":2,"name":"C\u00f3mo ponerle contrase\u00f1a (password) a una macro"}]},{"@type":"WebSite","@id":"https:\/\/www.fditf.com\/bi\/#website","url":"https:\/\/www.fditf.com\/bi\/","name":"Business Intelligence MX","description":" ","publisher":{"@id":"https:\/\/www.fditf.com\/bi\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.fditf.com\/bi\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.fditf.com\/bi\/#organization","name":"FDI Tecnolog\u00eda y Finanzas, SAS de CV","url":"https:\/\/www.fditf.com\/bi\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.fditf.com\/bi\/#\/schema\/logo\/image\/","url":"http:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2018\/01\/logo.png","contentUrl":"http:\/\/www.fditf.com\/bi\/wp-content\/uploads\/2018\/01\/logo.png","width":275,"height":168,"caption":"FDI Tecnolog\u00eda y Finanzas, SAS de CV"},"image":{"@id":"https:\/\/www.fditf.com\/bi\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/excelyfinanzasmx\/","https:\/\/x.com\/excelfinanzasMX"]},{"@type":"Person","@id":"https:\/\/www.fditf.com\/bi\/#\/schema\/person\/ff30cbd17d9f746cacb687d5332924c5","name":"V\u00edctor Urbina","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/82af8163ed1a344c7fe2a709c29fea445dbf06cd4321465c3fdcc146da0403c4?s=96&d=mm&r=g","caption":"V\u00edctor Urbina"},"url":"https:\/\/www.fditf.com\/bi\/author\/admin\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/posts\/3851","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/comments?post=3851"}],"version-history":[{"count":5,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/posts\/3851\/revisions"}],"predecessor-version":[{"id":4669,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/posts\/3851\/revisions\/4669"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/media\/3868"}],"wp:attachment":[{"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/media?parent=3851"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/categories?post=3851"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fditf.com\/bi\/wp-json\/wp\/v2\/tags?post=3851"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}