Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Find Protected Cells

If you want to allow for any being set use OR

With ActiveSheet
If .ProtectContents OR .ProtectDrawingObjects OR _
etc.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ExcelMonkey" wrote in message
...
How do you wrap an If around the .Protect property for the
active sheet given that it has three other conditions
(DrawingObjects:=True, Contents:=True, Scenarios:=True)?
I only care about the cells/formulas.


If ActiveSheet.Protect Contents:=True Then
'code here
End if








-----Original Message-----
Surely, it is both, irrespective of order.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ExcelMonkey" wrote

in message
...
I know that I can lock cells and hide their formulas.

Selection.Locked = True
Selection.FormulaHidden = True

I also know that none of this kicks in unless the sheet
itself is protected.

ActiveSheet.Protect DrawingObjects:=True,

Contents:=True,
Scenarios:=True

How do I tell if a cell is protected? What property am

I
tesing for? Is it first the sheet and then the cell?

THanks




.



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
How To Find If The ActiveCell Is Protected FARAZ QURESHI Excel Discussion (Misc queries) 7 April 13th 09 05:03 PM
Edit text format in non-protected cells in protected worksheet Bonnie Excel Discussion (Misc queries) 2 April 19th 08 04:48 PM
How to "Find Next" text in protected cells calflyer Excel Discussion (Misc queries) 0 January 15th 07 07:56 PM
Find & Replace within Unlocked Cells in a Protected Worksheet DaveyC4S Excel Discussion (Misc queries) 2 October 9th 05 11:12 AM
Find Protected Cells Q John Excel Worksheet Functions 7 December 9th 04 11:49 PM


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