仅从SharePoint 2013“列表”菜单隐藏导出为Excel的button

我创build了一个导出到excelbutton,在Mac和Windows的作品。 现在我想隐藏列表function区中的现有导出到Excelbutton(仅列表不是库)。 我写了自定义操作XML,但它不会删除任何东西。 这是我的XML

<CustomAction Id="RemoveRibbonButton" Location="CommandUI.Ribbon"> <CommandUIExtension> <CommandUIDefinitions> <CommandUIDefinition Location="Ribbon.List.Actions.ExportToSpreadsheet-Large" /> </CommandUIDefinitions> </CommandUIExtension> 

我附加到现有的XML添加button。 那个工作正常。 任何想法什么是行不通的。

问题解决了在xml <Location =“Ribbon.List.Actions.ExportToSpreadsheet”/>中replace这个