Dealing with a Locked Cell

  • Thread starter Thread starter Craig
  • Start date Start date
C

Craig

Hi there, I'm having trouble with unprotecting a worksheet then changing a
cells value to locked or unlocked?

I'm using this:

sheet1.unprotect
sheet1.Range("A1").locked=False
if(sheet2.Range("B200").value = "Apples" then
sheet1.Range("A1").value=""
sheet1.Range("A1").locked=True
end if
sheet1.protect
this is just an example... but seems to error with the .locked=true or false
Any Ideas?

Thanks in advance

Craig
 
Hey... Sorry for wasting space, I solved my problem. Appearently I was
dealing with merged cells.
I needed to specify range("A1:A3").locked =?
till we me again!
Craig
 
Back
Top