重新定位Excel Addin插件的方法

Posted 马语者

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了重新定位Excel Addin插件的方法相关的知识,希望对你有一定的参考价值。

Excel Add-in - How to automate installation

 

Automatic Approach

?The best way to automate the adding of the Sharperlight Excel add-in is to call the Sharperlight Excel Add-in Intaller Application found in the installation folder in ?C:\Program Files (x86)\phiLight\SharperLight\bin\md.InstallExcelAddin.exe

The application will create the correct Excel Add-in registry keys given that it has enough permissions to do so.  If you are using Critrix you may want to call this Application when user sign-on scripts are run to ensure that the Sharperlight Add-in is present.   Another appoarch would be to have a Desktop Shortcut so that the user can click the icon to have the Add-in reinstalled if for whatever reason the Add-in had disappeared or had dropped out.

 

Manual Approach

Installing the Excel Add-in

You can manually add the Sharperlight Excel Add-in by using Excel selecting

File\Options\Add-Ins\Manage and clicking the Go button and browsing for the add-in file

32bit Office

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin.xll

64bit Offce

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin64.dll

 

It is also possible have the add-in open by setting the Windows Registry Key 

 技术分享

 

 

Installing the Excel Add-in on Citrix 

The link below is an example of using a batch file to auto set the user Excel registry settings to have Excel open the add-in when the user starts Excel.

The batch file is run when the user logs onto Citrix.  In this way the user does not have to manually add the add-in themselves in Excel.

The batch file can be later removed when everyone has logged on at least once.

You could take this method a step further and only run the batch for the few users that require the add-in or have the batch determine which users it creates the reg key for

 

You need to get the office version of the reg key matched with the version on Critix,  14.0 is for Office 2010



Windows Registry Editor Version 5.00
 
[HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\Excel\Options]
"OPEN"="/R \"C:\\Program Files (x86)\\phiLight\\SharperLight\\bin\\md.XLAddin.xll\""
 
 
If more than one add-in is present then OPEN1  OPEN2 etc may have to be used.

http://www.network54.com/Forum/58296/thread/992552834/Issues+with+Excel+Add-In+on+Citrix


 

Permissions

 

Because someone may try and add the add-in manually you can prevent them from using the Add-in in the following way

 

The link below explains that specific users can be given access to run the Add-in by setting permissions on the add-in DLL

 

32bit Office

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin.xll

64bit Offce

C:\Program Files\phiLight\SharperLight\bin\md.XLAddin64.dll

 

http://forums.citrix.com/message.jspa?messageID=1398432

Trouble Shooting

Excel creates registry keys when an add-in is added.  The follow are reasons are why the add-in may disappear.

  1. Excel did not have permissions to create the registry keys  (Run Excel as Admin and add the Sharperlight Add-in then close and open Excel again)
  2. The IT department may have scripts to clear down the users profile on logoff and copy a basic profile on logon which is missing the add-in registry keys
  3. There is another add-in that doesn‘t comply with add-in rules and always assumes it will be the first or last add-in for example.  Try adding Sharperlight after this add-in not before.  For example Analysis ToolPak has been known to cause issues when it is not the last Add-in in the list.
  4. In Trust Centre on the Add-ins tab make sure that Disable all Application Add-in is not on

     

    https://msdn.microsoft.com/en-us/library/bb386106.aspx

     

    http://community.spiceworks.com/topic/457676-excel-2013-add-ins-tab-keeps-disappearing-from-ribbon

 














以上是关于重新定位Excel Addin插件的方法的主要内容,如果未能解决你的问题,请参考以下文章

从 Excel 公式中的 UDF 中删除 AddIn 路径

在 Nivo Slider 插件中重新定位一个图像

使用 VBA 限制 Excel 中的地理定位 API 调用。

如何实现excel电子表格审计追踪功能

是否可以使用 word web addin 获取光标位置

重新定位 Jquery UI 自动完成结果框