Ms office 同时具有自定义函数和任务窗格
我下面尝试自定义函数。以下清单确实启用了自定义函数:Ms office 同时具有自定义函数和任务窗格,ms-office,office-js,custom-functions-excel,Ms Office,Office Js,Custom Functions Excel,我下面尝试自定义函数。以下清单确实启用了自定义函数: <?xml version="1.0" encoding="utf-8"?> <OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/off
<?xml version="1.0" encoding="utf-8"?>
<OfficeApp xmlns="http://schemas.microsoft.com/office/appforoffice/1.1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:bt="http://schemas.microsoft.com/office/officeappbasictypes/1.0" xmlns:ov="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="TaskPaneApp">
<Id>a124c024-2ae8-4d1a-bb00-7ff68c6fb738</Id>
<!-- Generate a new guid for your Id element -->
<Version>1.0.0.0</Version>
<ProviderName>Contoso</ProviderName>
<DefaultLocale>en-US</DefaultLocale>
<DisplayName DefaultValue="Custom functions sample" />
<Description DefaultValue="A variety of sample custom functions." />
<Hosts>
<Host Name="Workbook" />
</Hosts>
<DefaultSettings>
<SourceLocation DefaultValue="https://www.myweb.com/customfunctions.html"/>
</DefaultSettings>
<Permissions>ReadWriteDocument</Permissions>
<VersionOverrides xmlns="http://schemas.microsoft.com/office/taskpaneappversionoverrides" xsi:type="VersionOverridesV1_0">
<Hosts>
<Host xsi:type="Workbook">
<AllFormFactors>
<ExtensionPoint xsi:type="CustomFunctions">
<Script>
<SourceLocation resid="functionsjs" />
</Script>
<Page>
<SourceLocation resid="functionshtml"/>
</Page>
</ExtensionPoint>
</AllFormFactors>
</Host>
</Hosts>
<Resources>
<bt:Urls>
<bt:Url id="functionsjs" DefaultValue="https://www.myweb.com/customfunctions.js" />
<bt:Url id="functionshtml" DefaultValue="https://www.myweb.com/customfunctions.html" />
</bt:Urls>
</Resources>
</VersionOverrides>
</OfficeApp>
a124c024-2ae8-4d1a-bb00-7ff68c6fb738
1.0.0.0
康托索
恩美
读写文件
现在,我想知道是否可以同时拥有自定义函数和任务窗格。所以我在https://www.myweb.com/customfunctions.html
。但是,重新加载加载项不会显示任务窗格
有谁能告诉我,是否可以同时拥有自定义函数和任务窗格?我应该修改什么来实现这一点
编辑1:将xsi:type=“VersionOverridesV1_0”
更改为xsi:type=“TaskPaneApp”
会打开任务窗格,但当我们尝试自定义函数时,会出现一个错误:“我们无法启动此加载项,因为它设置不正确”
因此,我仍在寻找合适的解决方案。是的,通过使用外接程序命令,您可以在同一外接程序中同时拥有自定义函数和任务窗格 要启用任务窗格命令,请在清单中使用
ShowTaskpane
操作(参见,如下图所示)
如果您还希望任务窗格在插入时是“永久性”的,请使用on自动打开任务窗格
-Michael(定制函数的PM)你好,Michael,你有什么想法吗?如果我们想让自定义函数和任务窗格配置出现在同一加载项中,并从相同的html和js文件控制它们,CheersHow会在清单中出现吗?