#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 60
Default autofilter

I was told by several people that you could not protect a spreadsheet and
autofilter it. By luck I found that if you autofilter and then protect your
sheet that the protection stay as well as the autofiltering.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,726
Default autofilter

That's OK with 2003 as you select to allow Autofilter on a protected sheet.
Earlier versions don't have such an option.

--
---
HTH

Bob

(change the xxxx to gmail if mailing direct)


"tankerman" wrote in message
...
I was told by several people that you could not protect a spreadsheet and
autofilter it. By luck I found that if you autofilter and then protect
your
sheet that the protection stay as well as the autofiltering.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default autofilter

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. (Earlier versions of
excel don't remember it after closing the workbook. IIRC, xl2002+ will remember
the setting under tools|Protection|protect sheet.)

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

tankerman wrote:

I was told by several people that you could not protect a spreadsheet and
autofilter it. By luck I found that if you autofilter and then protect your
sheet that the protection stay as well as the autofiltering.


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default autofilter

Why do say "by luck"?

You were given these instructions a couple of days ago along with the code to
achieve it.

In fact, you posted earlier thanking me for the code provided by Dave Peterson.




Gord Dibben MS Excel MVP

On Thu, 14 Dec 2006 01:46:00 -0800, tankerman
wrote:

I was told by several people that you could not protect a spreadsheet and
autofilter it. By luck I found that if you autofilter and then protect your
sheet that the protection stay as well as the autofiltering.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Autofilter using the contents of a particular cell mathew Excel Discussion (Misc queries) 8 September 12th 06 10:43 PM
How to Sort within AutoFilter with Protection on (and AutoFilter . giblon Excel Discussion (Misc queries) 1 February 16th 06 12:23 PM
Autofilter not working correctly... Emily Excel Discussion (Misc queries) 0 January 11th 06 10:37 PM
Using AutoFilter with worksheet protection in 2000 vs. 2003 gncook Excel Discussion (Misc queries) 3 July 25th 05 08:02 PM
Strange Results with Autofilter Joyce Excel Discussion (Misc queries) 1 January 17th 05 02:42 AM


All times are GMT +1. The time now is 09:43 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"