我有一个存储在我的计算机上的onedrive文件夹中的用户定义函数的加载项 . 这将同步到我们公司IT部门的共享点位置 .

我已链接到Excel中的加载项,选项,“加载项”等 .

我也试过使用这里列出的注册表方法:http://www.jkp-ads.com/articles/AddinsAndSetupFactory.asp

但是,在打开Excel时,我收到一条错误消息,指出它无法找到加载项文件:“抱歉,我们找不到https://[...]-my.sharepoint.com/personal/[...]/Documents/excel_fxn_addin/MyFunctions.xlam . 它是否可能被移动,重命名或删除?”

我也尝试将此加载项移动到OneDrive之外的其他位置并引用该备用位置 . 但是,当我打开存储在OneDrive文件夹结构中的工作簿时,它假定该加载项位于One-Drive文件夹中,并提供与上面相同的错误消息,引用的链接以相同的Web主机开头,以C驱动器上MyFunctions.xlam位置的文件夹路径结束 .

确认错误消息后,excel工作簿可以引用UDF 's inside of the add-in. It will, however, save the references with the name of the web location which it is attempting to use for locating the add-in. For example, the UDF for trapezoid rule, 1601218 will be referenced as follows: "=' https://eastmanchem-my.sharepoint.com/personal/u773253_emn_com/Documents/excel_fxn_addin/MyFunctions.xlam '!traprule(...)". This returns an error as it can' t在那里找到该文件 .