{"id":232,"date":"2009-09-15T13:06:53","date_gmt":"2009-09-15T13:06:53","guid":{"rendered":"http:\/\/pariswells.com\/blog\/?p=232"},"modified":"2009-09-15T13:06:53","modified_gmt":"2009-09-15T13:06:53","slug":"deploy-xla-via-group-policy","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/fixes\/deploy-xla-via-group-policy","title":{"rendered":"How to Deploy (.xla) Excel Add-In Via Group Policy"},"content":{"rendered":"<a href=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2009\/09\/microsof-excell-20071.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-full wp-image-231 img-responsive\" title=\"Excel Logo\" src=\"http:\/\/pariswells.com\/blog\/wp-content\/uploads\/2009\/09\/microsof-excell-20071.png\" alt=\"Excel Logo\" width=\"262\" height=\"267\" \/><\/a>\r\n\r\nI had 4 XLA Files, that I need to roll out to multiple machines across a network. These XLA files needed to be installed in a certain order. I found some Visual Basic Scripting Code ( off<a title=\"AppDeploy.com\" href=\"http:\/\/AppDeploy.com\"> AppDeploy.com<\/a> ) to add the Add-In and Enable it ( Can do this manualy by going to <strong>Tools<\/strong> , <strong>Add ins<\/strong> )\r\n\r\n<code>On Error Resume Next\r\nDim oXL\r\nDim oAddin\r\nSet oXL = CreateObject(\"Excel.Application\")\r\noXL.Workbooks.Add\r\nSet oAddin = oXL.AddIns.Add(\"\\\\Network Path\\NameOfXLAAddIn.xla\", True)\r\noAddin.Installed = True\r\noXL.Quit\r\nSet oAddin = Nothing\r\nSet oXL = Nothing<\/code>\r\n\r\nI saved this code in a .vbs file , and created a vbs file for each of the xla files that need installing. I then created a .bat file to run these in order. What I found was that only half of the XLA&#8217;s where being added to the machine. I checked in the local Add in&#8217;s directory ( C:\\Documents and Settings\\%USERNAME%\\Application Data\\Microsoft\\AddIns ) and the Addin&#8217;s wearn&#8217;t being copied from the server before being registered.\r\n\r\nI then added an xcopy function to the BAT file to copy the file manually before adding , and this resolved the issue\r\n\r\n<code>xcopy \"\\\\Server Path\\Example.xla\" \"C:\\Documents and Settings\\%USERNAME%\\Application Data\\Microsoft\\AddIns\" \/y<\/code>","protected":false},"excerpt":{"rendered":"<p>I had 4 XLA Files, that I need to roll out to multiple machines across a network. These XLA files needed to be installed in a certain [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[170,169,172,171],"class_list":["post-232","post","type-post","status-publish","format-standard","hentry","category-fixes","tag-deploy-excel-addins","tag-deploy-xla-files","tag-group-policy-excel-addins","tag-xla-and-group-policy"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/232","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=232"}],"version-history":[{"count":2,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions"}],"predecessor-version":[{"id":234,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/232\/revisions\/234"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=232"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=232"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=232"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}