Excel功能区 - 为受保护的工作表启用“筛选”按钮

时间:2013-05-03 02:44:15

标签: xml excel ribbon

将excel 2010用于受保护的工作表,功能区上的自动筛选选项显示为灰色。然而,通过右键点击我仍然能够过滤得很好,尽管表格受到保护,所以这对我来说没有多大意义(但其他人似乎有同样的问题http://www.ozgrid.com/forum/showthread.php?t=163585

有没有办法自定义功能区xml来覆盖它并启用永久按钮?

我试过了:

<?xml version="1.0" encoding="UTF-8"?><customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="Ribbon_Load">
<commands>   
<command idMso="Filter" enable="true"/>    
</commands>
</customUI>

但这没有效果。非常感谢任何帮助!

EDIT。

我的表格受到如下保护:

Sheet1.Protect DrawingObjects:=True, contents:=True, Scenarios:=True, userinterfaceonly:=True, AllowSorting:=True, AllowFiltering:=True, AllowDeletingColumns:=True, AllowInsertingColumns:=True
Sheet1.EnableAutoFilter = True

0 个答案:

没有答案