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

from help on protectionmode

True if user-interface-only protection is turned on.

So for me, that doesn't even appear to be the correct attribute to check.

There are four attributes that need to be checked if you want to see if a
sheet is protected, but protectcontents would definitely affect what you are
trying to do.

from help on protectcontents:
True if the contents of the sheet are protected.

--
Regards,
Tom Ogilvy

"gareth surgenor" wrote in message
...


Update:=

Your advice worked, but I had to find a way of confirming if the
worksheet was already protected or not.

activesheet.protectionmode seems like the right command, but it doesn't
work correctly. I got round it by using activesheet.protectcontents,
which returns F or T depending on whether the sheet is protected.

Many thanks again, Gareth

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!



 
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:12 PM.

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"