LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel will not "show all" from an Advanced Filter on a sheet with protected cells.

Hi all,
I'm a group newbie so apologies in advance for any faux pas!

Question:
I have a worksheet with an advanced filter operating on it, and I want
to protect cells by password. Using the normal routes for protection
I've allowed access to the cells I want to be editable and all is
fine, except.......

My advanced filter is controlled by 2 commandbuttons I've put ont the
form, "filter" and "show all" as the sheet is to be used by computer
users non technicals. The filter button works fine when the sheet is
protected, but the "advanced filter show all" button hangs with error
"Showalldata method of worksheet class failed", and highlights the
line of code "Activesheet ShowAllData" attached to that button in Vb.

This results in my data not being unfiltered, and Vb pops up, scaring
the above mentioned users.

I've used the line "On Error Resume Next" to cover the error and stop
Vb coming up, but I can't "show all" until I unprotect the sheet!

Is there anyway I can allow an advanced filter show all on a protected
sheet?

I've tried using the "activesheet.enableautofilter = true", but this
doesn't work for advanced filters. Grr.

Any ideas, your help is much appreciated.
Yours,
Gareth Surgenor
 
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
How do i enable "Group" & "Ungroup" in a protected sheet DBLA137 Excel Discussion (Misc queries) 1 March 11th 09 12:20 AM
sheet protected but cells "cleared of all" become locked Glen Excel Discussion (Misc queries) 4 August 8th 07 10:33 PM
"Live" Advanced Filter (for unique records) RussG Excel Discussion (Misc queries) 15 August 3rd 07 01:10 PM
Advanced filter formula for "contains="Sept" condor_tmc Excel Worksheet Functions 2 September 15th 06 01:00 AM
How do i enable "Group" & "Ungroup" in a protected sheet ruddojo Excel Discussion (Misc queries) 0 June 2nd 06 01:01 AM


All times are GMT +1. The time now is 04:18 AM.

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"