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 / Programming / January 2006

Tip: Looking for answers? Try searching our database.

Protected sheet and Autofilter?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
harpscardiff - 25 Jan 2006 17:16 GMT
Hi,

I have preset filters recorded for different status, so at a click of a
button anybody can view pending cases which are at a very high status.
But the buttons do not function when I protect the sheet, even though I
have selected the Enable AutoFilter box.

Is there any code I can enter to unprotect the sheet then protect the
sheet?

Thanks

Signature

harpscardiff

Crowbar - 25 Jan 2006 17:29 GMT
Hi

Create a button on your sheet and apply this code (you will have to insert
your autofilter code)

You will also change sheet1 to the name of the sheet and also password to
your password

private sub commandbutton1_click()

sheets("sheet1").Unprotect = "password"

Autofilter here

sheets("sheet1").Protect = "password"

end sub
Ron de Bruin - 25 Jan 2006 17:30 GMT
Hi harpscardiff

First activate Autofilter and then protect your sheet with the filter option checked

Signature

Regards Ron de Bruin
http://www.rondebruin.nl

> Hi,
>
[quoted text clipped - 7 lines]
>
> Thanks
Ron de Bruin - 25 Jan 2006 17:35 GMT
If I not understand you correct see
http://www.contextures.com/xlautofilter03.html#Protect

Signature

Regards Ron de Bruin
http://www.rondebruin.nl

> Hi harpscardiff
>
[quoted text clipped - 11 lines]
>>
>> Thanks
harpscardiff - 25 Jan 2006 17:58 GMT
I understand what you guys are saying - but I have 4 different filters.

1  - turns filters on and off
2 - Shows pending records
3 - shows TBA records
4 - shows very high/high pending records.

I can't turn them all on, then protect.....do I have to amend the code
if so how?

Thank
 
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.