Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default Programatically Filter a protected shared worksheet

How can I filter a protected shared worksheet?
1. I have allowed filtering in protection & can filter the protected
worksheet manually but if I try using code it says its protected. Code used
to filter Selection.AutoFilter Field:=3, Criteria1:="LK"
2. I can't unprotect then filter because it's a shared workbook.
3. I have used Protect UserInterfaceOnly:=True but this resets after closing
& cannot be reapplied as you cant protect a shared workbook.

Regards
Neill
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Programatically Filter a protected shared worksheet

You're going to have to make a choice--share the workbook or allow filtering.

Or come up with a different idea.

Debra Dalgleish once suggested something like this:

Create a new sheet
Keep it unprotected
Fill it with formulas like:

=if(sheet1!a1="","",sheet1!a1)

so all the formulas retrieve their values from the "real" sheet.

Then apply filtering to that unprotected sheet.

You may want to remind the users that changes to this sheet are not
important--it's only there to allow them to use the filter. (Maybe give all the
cells in that sheet a different fill color to make it look different.)


Neill wrote:

How can I filter a protected shared worksheet?
1. I have allowed filtering in protection & can filter the protected
worksheet manually but if I try using code it says its protected. Code used
to filter Selection.AutoFilter Field:=3, Criteria1:="LK"
2. I can't unprotect then filter because it's a shared workbook.
3. I have used Protect UserInterfaceOnly:=True but this resets after closing
& cannot be reapplied as you cant protect a shared workbook.

Regards
Neill


--

Dave Peterson
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
Programatically Filter a protected shared worksheet Neill Excel Programming 0 November 19th 07 09:45 AM
Filter a protected shared worksheet Neill Excel Programming 18 November 16th 07 12:34 PM
Spell Check in Protected Worksheet & Shared Workbook DaveyC4S Excel Discussion (Misc queries) 6 October 28th 05 12:50 PM
Turning Filters ON in a Protected Shared Worksheet Gary Excel Programming 1 February 20th 04 04:00 AM
shared workbooks - protected worksheet - insert rows mika. Excel Programming 1 September 11th 03 01:51 AM


All times are GMT +1. The time now is 02:12 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"