{"id":2063,"date":"2019-04-04T15:15:59","date_gmt":"2019-04-04T15:15:59","guid":{"rendered":"http:\/\/elbsolutions.com\/projects\/?p=2063"},"modified":"2022-02-03T11:24:27","modified_gmt":"2022-02-03T17:24:27","slug":"pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry","status":"publish","type":"post","link":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/","title":{"rendered":"Pre-Setting &#8216;Trust access to the VBA project object model&#8217; for users via registry"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">There are some pretty cool &#8220;on the fly&#8221; programmatic things we can do with the VBA references like deleting &#8220;MISSING&#8221; references (which break code that is referenced UNDER these missing references- that is why they need to be fixed). But to do so requires that the user checks the box &#8216;Trust access to the VBA project object model&#8217; which is buried deep (in typical Microsoft fashion). The Ribbon to check this manually is in the popup window accessed by File->Options->Trust Center->Macro Settings. Instead of writing code to tell the user what to do &#8211; why not get a registry change on all the target computers first. <a href=\"https:\/\/social.technet.microsoft.com\/Forums\/exchange\/en-US\/e6e80835-0d2b-4dfa-b83d-91e49bd5dea3\/enable-trust-access-to-the-vba-project-object-model?forum=excel\">This article gives the *hint* on how to do that<\/a>. I have 32bit Office (on purpose &#8211; so I don&#8217;t forget about those users) but everyone should have 64bit. So &#8211; there are a few registry keys that should get set. <\/p>\n\n\n\n<!--more-->\n\n\n\n<p class=\"wp-block-paragraph\">[HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\15.0\\Excel\\Security]<br>\n&#8220;AccessVBOM&#8221;=dword:00000001<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">[HKEY_CURRENT_USER\\Software\\Microsoft\\Office\\15.0\\Excel\\Security\\Trusted Locations]<br>\n&#8220;AllowNetworkLocations&#8221;=dword:00000001<br>\n&#8220;AllLocationsDisabled&#8221;=dword:00000000<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>don&#8217;t forget to also add a HKEY_CURRENT_USER\\Software\\Wow6432Node version for 64bit Office installs<\/li><li>don&#8217;t forget to also add a set for HKEY_LOCAL_MACHINE for all new users that might login<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>There are some pretty cool &#8220;on the fly&#8221; programmatic things we can do with the VBA references like deleting &#8220;MISSING&#8221; references (which break code that is referenced UNDER these missing references- that is why they need to be fixed). But to do so requires that the user checks the box &#8216;Trust access to the VBA [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2063","post","type-post","status-publish","format-standard","hentry","category-general"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Pre-Setting &#039;Trust access to the VBA project object model&#039; for users via registry - ELB Solutions.com Inc.<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Pre-Setting &#039;Trust access to the VBA project object model&#039; for users via registry - ELB Solutions.com Inc.\" \/>\n<meta property=\"og:description\" content=\"There are some pretty cool &#8220;on the fly&#8221; programmatic things we can do with the VBA references like deleting &#8220;MISSING&#8221; references (which break code that is referenced UNDER these missing references- that is why they need to be fixed). But to do so requires that the user checks the box &#8216;Trust access to the VBA [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/\" \/>\n<meta property=\"og:site_name\" content=\"ELB Solutions.com Inc.\" \/>\n<meta property=\"article:published_time\" content=\"2019-04-04T15:15:59+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-02-03T17:24:27+00:00\" \/>\n<meta name=\"author\" content=\"Etienne Bley\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Etienne Bley\" \/>\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:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/\"},\"author\":{\"name\":\"Etienne Bley\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"headline\":\"Pre-Setting &#8216;Trust access to the VBA project object model&#8217; for users via registry\",\"datePublished\":\"2019-04-04T15:15:59+00:00\",\"dateModified\":\"2022-02-03T17:24:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/\"},\"wordCount\":225,\"articleSection\":[\"General\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/\",\"name\":\"Pre-Setting 'Trust access to the VBA project object model' for users via registry - ELB Solutions.com Inc.\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\"},\"datePublished\":\"2019-04-04T15:15:59+00:00\",\"dateModified\":\"2022-02-03T17:24:27+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Pre-Setting &#8216;Trust access to the VBA project object model&#8217; for users via registry\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#website\",\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/\",\"name\":\"ELB Solutions.com Inc.\",\"description\":\"Bringing all your IT Pieces together\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/#\\\/schema\\\/person\\\/51e717c68f4f5917c63baf88f0896c39\",\"name\":\"Etienne Bley\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g\",\"caption\":\"Etienne Bley\"},\"url\":\"https:\\\/\\\/elbsolutions.com\\\/projects\\\/author\\\/etienne-bley\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Pre-Setting 'Trust access to the VBA project object model' for users via registry - ELB Solutions.com Inc.","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:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/","og_locale":"en_US","og_type":"article","og_title":"Pre-Setting 'Trust access to the VBA project object model' for users via registry - ELB Solutions.com Inc.","og_description":"There are some pretty cool &#8220;on the fly&#8221; programmatic things we can do with the VBA references like deleting &#8220;MISSING&#8221; references (which break code that is referenced UNDER these missing references- that is why they need to be fixed). But to do so requires that the user checks the box &#8216;Trust access to the VBA [&hellip;]","og_url":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/","og_site_name":"ELB Solutions.com Inc.","article_published_time":"2019-04-04T15:15:59+00:00","article_modified_time":"2022-02-03T17:24:27+00:00","author":"Etienne Bley","twitter_misc":{"Written by":"Etienne Bley","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/#article","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/"},"author":{"name":"Etienne Bley","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"headline":"Pre-Setting &#8216;Trust access to the VBA project object model&#8217; for users via registry","datePublished":"2019-04-04T15:15:59+00:00","dateModified":"2022-02-03T17:24:27+00:00","mainEntityOfPage":{"@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/"},"wordCount":225,"articleSection":["General"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/","url":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/","name":"Pre-Setting 'Trust access to the VBA project object model' for users via registry - ELB Solutions.com Inc.","isPartOf":{"@id":"https:\/\/elbsolutions.com\/projects\/#website"},"datePublished":"2019-04-04T15:15:59+00:00","dateModified":"2022-02-03T17:24:27+00:00","author":{"@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39"},"breadcrumb":{"@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/elbsolutions.com\/projects\/pre-setting-trust-access-to-the-vba-project-object-model-for-users-via-registry\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/elbsolutions.com\/projects\/"},{"@type":"ListItem","position":2,"name":"Pre-Setting &#8216;Trust access to the VBA project object model&#8217; for users via registry"}]},{"@type":"WebSite","@id":"https:\/\/elbsolutions.com\/projects\/#website","url":"https:\/\/elbsolutions.com\/projects\/","name":"ELB Solutions.com Inc.","description":"Bringing all your IT Pieces together","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/elbsolutions.com\/projects\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/elbsolutions.com\/projects\/#\/schema\/person\/51e717c68f4f5917c63baf88f0896c39","name":"Etienne Bley","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f8971dfb65b25b768415568f83247df4057f15d037137e386928a804e2c997b9?s=96&d=mm&r=g","caption":"Etienne Bley"},"url":"https:\/\/elbsolutions.com\/projects\/author\/etienne-bley\/"}]}},"_links":{"self":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2063","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/comments?post=2063"}],"version-history":[{"count":2,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2063\/revisions"}],"predecessor-version":[{"id":2065,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/posts\/2063\/revisions\/2065"}],"wp:attachment":[{"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/media?parent=2063"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/categories?post=2063"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/elbsolutions.com\/projects\/wp-json\/wp\/v2\/tags?post=2063"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}