2

使用 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>

但这没有任何效果。将不胜感激任何帮助!

编辑。

我的工作表受到这样的保护:

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

0 回答 0