Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

cannot protect sheet with auto filter

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Greg - 04 Oct 2006 16:52 GMT
Hi, heres what I have xp home xp office suite. I am using a sheet for
grocery list database with auto filter.
the headers at the top are like "quantity", "Item", "catagory".

Normally I can select cells that I want to enter data and unlock them. then
protect the sheet.
but...with an auto filter If I select the headers mentioned above and lock
them, then select all other cells and unlock them. the auto filter pull down
list's dont pull down cause the headers are locked. Im explaining this the
best I can but I may be leaving something out.

Anyone?

Greg
Dave Peterson - 04 Oct 2006 17:19 GMT
Unless you protect the sheet in a special manner, the dropdowns for your
autofilter won't work on that protected worksheet.

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

> Hi, heres what I have xp home xp office suite. I am using a sheet for
> grocery list database with auto filter.
[quoted text clipped - 10 lines]
>
> Greg

Signature

Dave Peterson


Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.