{"id":1113,"date":"2018-07-01T11:11:31","date_gmt":"2018-07-01T11:11:31","guid":{"rendered":"http:\/\/officetuts.net\/excel\/?p=1113"},"modified":"2024-03-28T13:18:26","modified_gmt":"2024-03-28T13:18:26","slug":"privacy-warning-error","status":"publish","type":"post","link":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/","title":{"rendered":"Privacy Warning Error in Excel"},"content":{"rendered":"\n

When you try to save your macro-enabled worksheet sometimes you may experience the following error.<\/p>\n\n\n\n

Privacy warning:  This document contains macros, ActiveX controls, XML expansion pack information, or Web components.  These may include personal information that cannot be removed from the Document Inspector<\/strong><\/p>\n\n\n\n

Assign a macro to a button<\/h2>\n\n\n\n

The first way you can deal with this problem is by applying a macro to a button<\/a>.<\/p>\n\n\n\n

Sub noErrorSave()\n    Application.DisplayAlerts = FALSE\n    ActiveWorkbook.Save\n    Application.DisplayAlerts = TRUE\nEnd Sub<\/pre>\n\n\n\n

Now, instead of using Excel save options you can click this button.<\/p>\n\n\n\n

You can also assign a keyboard shortcut<\/a>, but be aware that when you use Ctrl + S<\/span><\/strong> you will override the standard save, so you may consider a different one.<\/p>\n\n\n\n

Trust center settings<\/h2>\n\n\n\n

In order to turn off this message permanently, go to FILE >> Options >> Trust Center<\/strong> and click the button Trust Center Settings<\/strong>.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

In Privacy Options<\/strong> uncheck the following checkbox.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

Now, you should be able to save your file<\/a> without annoying error messages.<\/p>\n","protected":false},"excerpt":{"rendered":"

When you try to save your macro-enabled worksheet sometimes you may experience the following error. Privacy warning:  This document contains macros, ActiveX controls,…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[190],"yoast_head":"\nPrivacy Warning Error in Excel<\/title>\n<meta name=\"description\" content=\"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Privacy Warning Error in Excel\" \/>\n<meta property=\"og:description\" content=\"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-07-01T11:11:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-28T13:18:26+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png\" \/>\n<meta name=\"author\" content=\"Tomasz Decker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Decker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\"},\"author\":{\"name\":\"Tomasz Decker\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"headline\":\"Privacy Warning Error in Excel\",\"datePublished\":\"2018-07-01T11:11:31+00:00\",\"dateModified\":\"2024-03-28T13:18:26+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\"},\"wordCount\":171,\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png\",\"keywords\":[\"pinterest\"],\"articleSection\":[\"examples\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\",\"url\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\",\"name\":\"Privacy Warning Error in Excel\",\"isPartOf\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png\",\"datePublished\":\"2018-07-01T11:11:31+00:00\",\"dateModified\":\"2024-03-28T13:18:26+00:00\",\"description\":\"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.\",\"breadcrumb\":{\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage\",\"url\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png\",\"contentUrl\":\"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/officetuts.net\/excel\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Privacy Warning Error in Excel\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/officetuts.net\/excel\/#website\",\"url\":\"https:\/\/officetuts.net\/excel\/\",\"name\":\"\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/officetuts.net\/excel\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42\",\"name\":\"Tomasz Decker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g\",\"caption\":\"Tomasz Decker\"},\"logo\":{\"@id\":\"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/\"},\"description\":\"Spreadsheet and Python enthusiast.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Privacy Warning Error in Excel","description":"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.","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:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/","og_locale":"en_US","og_type":"article","og_title":"Privacy Warning Error in Excel","og_description":"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.","og_url":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/","article_published_time":"2018-07-01T11:11:31+00:00","article_modified_time":"2024-03-28T13:18:26+00:00","og_image":[{"url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png"}],"author":"Tomasz Decker","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tomasz Decker","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#article","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/"},"author":{"name":"Tomasz Decker","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"headline":"Privacy Warning Error in Excel","datePublished":"2018-07-01T11:11:31+00:00","dateModified":"2024-03-28T13:18:26+00:00","mainEntityOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/"},"wordCount":171,"publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png","keywords":["pinterest"],"articleSection":["examples"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/","url":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/","name":"Privacy Warning Error in Excel","isPartOf":{"@id":"https:\/\/officetuts.net\/excel\/#website"},"primaryImageOfPage":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage"},"image":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage"},"thumbnailUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png","datePublished":"2018-07-01T11:11:31+00:00","dateModified":"2024-03-28T13:18:26+00:00","description":"Fix the privacy warning error when saving macro-enabled worksheets by assigning a macro to a button. Learn how to do it here.","breadcrumb":{"@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#primaryimage","url":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png","contentUrl":"http:\/\/officetuts.net\/excel\/wp-content\/uploads\/sites\/2\/2018\/07\/trust-center-settings.png"},{"@type":"BreadcrumbList","@id":"https:\/\/officetuts.net\/excel\/examples\/privacy-warning-error\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/officetuts.net\/excel\/"},{"@type":"ListItem","position":2,"name":"Privacy Warning Error in Excel"}]},{"@type":"WebSite","@id":"https:\/\/officetuts.net\/excel\/#website","url":"https:\/\/officetuts.net\/excel\/","name":"","description":"","publisher":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/officetuts.net\/excel\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/41b0b6996aaa4c4127f86f3d24452d42","name":"Tomasz Decker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/18cbe22837193574870ae40ba56bf712?s=96&d=mm&r=g","caption":"Tomasz Decker"},"logo":{"@id":"https:\/\/officetuts.net\/excel\/#\/schema\/person\/image\/"},"description":"Spreadsheet and Python enthusiast."}]}},"_links":{"self":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1113"}],"collection":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/comments?post=1113"}],"version-history":[{"count":6,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1113\/revisions"}],"predecessor-version":[{"id":17377,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/posts\/1113\/revisions\/17377"}],"wp:attachment":[{"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/media?parent=1113"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/categories?post=1113"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/officetuts.net\/excel\/wp-json\/wp\/v2\/tags?post=1113"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}