重新定位Excel Addin插件的方法

Excel Add-in - How to automate installation

Thursday, 20 October 2011

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

时间: 2025-01-06 21:49:23

重新定位Excel Addin插件的方法的相关文章

sublime text2 用ctags插件实现方法定位(转)

我们用sublime几乎都会首先安装这个插件,这个插件是管理插件的功能,先安装它,再安装其他插件就方便了. 点击sublime的菜单栏 view->show console :现在打开了控制台, 这个控制台有上下两栏, 上面一栏会实时显示sublime执行了什么插件,输出执行结果, 如果你安装的某个插件不能正常运行,应该先在这里看看有没有报错.下面栏是一个输入框,可以运行python代码.我们输入下面的代码点击回车运行, 就能安装好package control了. import urllib2

EXCEL快速自动填充方法集锦

EXCEL快速自动填充方法集锦 原文地址,转载请注明:http://www.cnblogs.com/croso/p/5396841.html 方法一: 名称框输入a1:a1000回车,1, ctrl+回车,单击A1,双击填充柄,“自动填充选项”--“填充序列” 方法二: 先在A1输入需填充的内容,然后点右上角的填充按钮,点击“系列”选项,输入终止值 方法三: 编辑 定位 输入需要输入数据的最后一个单元格的位置ctrl ↑(方向键的上箭头) 编辑栏输入公式=MOD(ROW()-1,2)+1按ctr

安装Sublime Text 3插件的方法

安装Sublime Text 3插件的方法: 朋友们,小站活着不容易,全靠广告费养着了,如果本文对你有帮助.麻烦动下手点下页面的广告吧,谢谢! 直接安装 安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages). 使用Package Control组件安装 也可以安装package control组件,然后直接在线安装: 按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的,输入法属

C#中对EXCEL保存的SAVEAS方法说明

object missing = System.Reflection.Missing.Value;myWorkbook.SaveAs(fileallpath,Microsoft.Office.Interop.Excel.XlFileFormat.xlWorkbookNormal,missing,missing,missing,missing,Microsoft.Office.Interop.Excel.XlSaveAsAccessMode.xlNoChange,missing,missing,m

安装Sublime Text 3插件的方法:

朋友们,小站活着不容易,全靠广告费养着了,如果本文对你有帮助.麻烦动下手点下页面的广告吧,谢谢! 直接安装 安装Sublime text 2插件很方便,可以直接下载安装包解压缩到Packages目录(菜单->preferences->packages). 使用Package Control组件安装 也可以安装package control组件,然后直接在线安装: 按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的,输入法属性设置-输入法管理-取消热键切换至QQ拼音)

Sublime Text 3插件安装方法

一:安装Sublime Text 3插件的方法 安装package control组件,然后直接在线安装: 1.按Ctrl+`调出console(注:安装有QQ输入法的这个快捷键会有冲突的.输入法属性设置-输入法管理-取消热键切换至QQ拼音) 2.粘贴下面代码究竟部命令行并回车: import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); ur

MyEclipse 10 中安装Android ADT 22插件的方法

MyEclipse 10 中安装Android ADT 22插件的方法 下载ADT包:http://dl.google.com/android/ADT-22.0.0.zip 将ADT-22.0.0.zip文件放在指定的目录下,例如D:\Programs\Android,不解压. 打开MyEclipse,点击菜单Help >MyEclipse Configuration Center,如下图 在MyEclipse Configuration Center中,点击Software标签,再点击add

android 定位一般有四种方法

android 定位一般有四种方法,这四种方式分别是:GPS定位,WIFI定准,基站定位,AGPS定位,                             (1)Android GPS:需要GPS硬件支持,直接和卫星交互来获取当前经纬度,这种方式需要手机支持GPS模块(现在大部分的智能机应该都有了).通过GPS方式准确度是最高的,但是它的缺点也非常明显:1,比较耗电:2,绝大部分用户默认不开启GPS模块:3,从GPS模块启动到获取第一次定位数据,可能需要比较长的时间:4,室内几乎无法使用.

Validation-jQuery表单验证插件使用方法

http://www.cnblogs.com/shuang121/archive/2012/04/23/2466628.html 作用 jquery.validate是jquery旗下的一个验证框架,借助jquery的优势,我们可以迅速验证一些常见的输入,并且可以自己扩充自己的验证方法,并且对国际化也有很好的支持. 使用前的布置 说明:需要JQuery版本:1.2.6+ 步骤: 要导入相应的jQuery.js与jquery.validate.js文件<script src="jquery.