View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.misc
FARAZ QURESHI FARAZ QURESHI is offline
external usenet poster
 
Posts: 553
Default How To Find If The ActiveCell Is Protected

Protection and locking is different. All the cells are locked by default and
the code won't proceed whether the sheet/cell is protected or not.


"Jacob Skaria" wrote:

Try Activecell.Locked

If this post helps click Yes
---------------
Jacob Skaria


"FARAZ QURESHI" wrote:

What would be the appropriate code for finding whether the active cell is
locked and protected?

Run-time error '438':
Object doesn't support this property or method

is being returned on the following piece:

If ActiveCell.Protected = True Then
MsgBox ("You can't change the contents of this Cell. It is locked &
protected.")

Help from you experts is sought!

Thanx in advance.