View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.setup
Dave Peterson Dave Peterson is offline
external usenet poster
 
Posts: 35,218
Default filter on a protected sheet

You can with a little VBA:

If you already have the outline/subtotals/autofilter applied, you can protect
the worksheet in code (auto_open/workbook_open??).

Option Explicit
Sub auto_open()
With Worksheets("sheet1")
.Protect Password:="hi", userinterfaceonly:=True
'.EnableOutlining = True
.EnableAutoFilter = True
End With
End Sub

It needs to be reset each time you open the workbook. (excel doesn't remember
it after closing the workbook.)

If you're new to macros, you may want to read David McRitchie's intro at:
http://www.mvps.org/dmcritchie/excel/getstarted.htm

peter wrote:

I have Excel 2000. Am I out of luck?

Thanks,

Peter

Gord Dibben wrote:
But you must have the filters enabled/set prior to protecting the worksheet.

XL 2002 and 2003


Gord Dibben MS Excel MVP

On Mon, 10 Jul 2006 07:48:23 +0100, "Nick Hodge"
wrote:

In XL XP (2002) on (I Think), you have the ability to allow filtering in the
worksheet protection dialog


--

Dave Peterson