Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protected sheet and Autofilter?


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


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=504982

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default Protected sheet and Autofilter?

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

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200601/1
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Protected sheet and Autofilter?

Hi harpscardiff

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

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


"harpscardiff" wrote in message
news:harpscardiff.227aja_1138209602.7846@excelforu m-nospam.com...

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


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=504982



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Protected sheet and Autofilter?

If I not understand you correct see
http://www.contextures.com/xlautofilter03.html#Protect


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


"Ron de Bruin" wrote in message ...
Hi harpscardiff

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

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


"harpscardiff" wrote in message
news:harpscardiff.227aja_1138209602.7846@excelforu m-nospam.com...

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


--
harpscardiff
------------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...o&userid=25960
View this thread: http://www.excelforum.com/showthread...hreadid=504982





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Protected sheet and Autofilter?


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

--
harpscardif
-----------------------------------------------------------------------
harpscardiff's Profile: http://www.excelforum.com/member.php...fo&userid=2596
View this thread: http://www.excelforum.com/showthread.php?threadid=50498



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 not working on protected sheet. parahumanoid[_2_] Excel Discussion (Misc queries) 1 November 1st 09 05:52 PM
using autofilter and sort, while sheet is protected mariekek5 Excel Discussion (Misc queries) 0 June 17th 09 01:13 PM
Autofilter in protected sheet Javier Excel Worksheet Functions 5 March 24th 08 05:56 PM
Autofilter protected sheet vecia[_4_] Excel Programming 4 September 10th 05 08:25 AM
AutoFilter on a Protected sheet Olle[_2_] Excel Programming 1 June 15th 04 08:12 AM


All times are GMT +1. The time now is 12:13 AM.

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

About Us

"It's about Microsoft Excel"