{"id":1528,"date":"2017-02-03T10:39:50","date_gmt":"2017-02-03T10:39:50","guid":{"rendered":"http:\/\/stevenwhiting.com\/blog\/?p=1528"},"modified":"2017-02-03T10:39:50","modified_gmt":"2017-02-03T10:39:50","slug":"excel-macro-location","status":"publish","type":"post","link":"https:\/\/stevenwhiting.com\/blog\/?p=1528","title":{"rendered":"Excel Macro location"},"content":{"rendered":"<p>To be clear, I only copy and paste other peoples sites sometimes in case the page I&#8217;ve linked to fails, which has happened a few times when people don&#8217;t carrying on hosting their sites.<\/p>\n<p>&nbsp;<\/p>\n<p><a href=\"http:\/\/wheatblog.com\/2011\/08\/where-is-the-excel-personal-macro-workbook-located\/\" target=\"_blank\">http:\/\/wheatblog.com\/2011\/08\/where-is-the-excel-personal-macro-workbook-located\/<\/a><\/p>\n<blockquote><p>Sometimes I blog things mostly so I can remember them and in the off chance that they might be useful to others. This post falls into that category. If you use Microsoft Excel, and you have a macro that you want to be available globally\u2013in any open workbook\u2013you can place it in your Personal Macro Workbook, which is just an Excel Workbook (in binary, XLSB, format, for speed) that lives at a particular location, where Excel will look for it whenever it launches.<\/p>\n<p>On Windows 7, it lives here: <a id=\"return-note-1649-1\" class=\"simple-footnote\" title=\"If there\u2019s no Roaming directory in your setup, use Local instead. The rest of the path will remain the same.\" href=\"http:\/\/wheatblog.com\/2011\/08\/where-is-the-excel-personal-macro-workbook-located\/#note-1649-1\"><sup>1<\/sup><\/a><\/p>\n<blockquote>\n<pre>C:\\Users\\AppData\\Roaming\\Microsoft\\Excel\\XLSTART\\PERSONAL.XLSB<\/pre>\n<\/blockquote>\n<p>On Windows XP, it lives here:<\/p>\n<blockquote>\n<pre>C:\\Documents and Settings\\Application Data\\Microsoft\\Excel\\XLSTART\\PERSONAL.XLSB<\/pre>\n<\/blockquote>\n<p>In either case, the easy way to create PERSONAL.XLSB is not to muck around with the file system directly. Instead, just record a macro in Excel and, when you\u2019re prompted to save it, choose <em>Personal Macro Workbook<\/em> from the <em>Store Macro In<\/em> drop-down menu on the <em>Record Macro<\/em> dialog box. Record yourself typing a few numbers and adding some formatting to them or something similar. Afterwards, you can open up the Personal Macro Workbook via the <em>Visual Basic<\/em> button on the <em>Developer<\/em> tab later and delete whatever you record. Once you create it, your Personal Macro Workbook will be listed in the VBA Editor as \u201cVBAProject (PERSONAL.XLSB)\u201d.<\/p>\n<h3>Some Additional Details for the Truly Nerdy<\/h3>\n<p>The location of the Personal Macro Workbook is a little confusing, because older versions of Excel stored it in an XLSTART folder buried inside the Program Files folder. Even though you can\u2019t write any files to it, Excel 2007 and Excel 2010 also have XLSTART folders inside the Program Files directory. Here are the paths:<\/p>\n<p>For Excel 2010:<\/p>\n<blockquote>\n<pre>C:\\Program Files\\Microsoft Office\\Office14\\XLSTART\\<\/pre>\n<\/blockquote>\n<p>For Excel 2007:<\/p>\n<blockquote>\n<pre>C:\\Program Files\\Microsoft Office\\Office12\\XLSTART\\<\/pre>\n<\/blockquote>\n<p>\u201cOffice 14\u201d is the internal name for Office 2010. It\u2019s actually the 13th version of Office, but Microsoft saw fit to skip naming it Office 13, due, one suspects to superstition. So \u201cOffice 12\u201d is Office 2007, \u201cOffice 11\u201d is Office 2003, and so on. If you happen to be stuck running Excel 2003 on a Windows XP box, you\u2019ll find PERSONAL.XLSB at this path:<\/p>\n<blockquote>\n<pre>C:\\Program Files\\Microsoft Office\\Office11\\XLSTART\\<\/pre>\n<\/blockquote>\n<\/blockquote>\n<p>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To be clear, I only copy and paste other peoples sites sometimes in case the page I&#8217;ve linked to fails, which has happened a few times when people don&#8217;t carrying on hosting their sites. &nbsp; http:\/\/wheatblog.com\/2011\/08\/where-is-the-excel-personal-macro-workbook-located\/ Sometimes I blog things &hellip; <a href=\"https:\/\/stevenwhiting.com\/blog\/?p=1528\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[198],"class_list":["post-1528","post","type-post","status-publish","format-standard","hentry","category-it-notes","tag-excel"],"_links":{"self":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1528","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1528"}],"version-history":[{"count":1,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions"}],"predecessor-version":[{"id":1529,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1528\/revisions\/1529"}],"wp:attachment":[{"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1528"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1528"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevenwhiting.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1528"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}