Excelfunction区 – 为受保护的工作表启用“过滤”button
使用Excel 2010保护页面,function区上的自动过滤选项变灰。 然而,通过右键点击,我仍然能够过滤蛮好的,尽pipe表格被保护,所以这对我没有多大意义(但其他人似乎也有同样的问题http://www.ozgrid.com/forum/showthread .php?t = 163585 )
有没有一种方法来自定义function区XML来覆盖这个并启用button永久?
我试过了:
<?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