Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 "Craig" wrote in message news:oPwTe.418967$5V4.404463@pd7tw3no... 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 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Or...
Sheet1.Range("A1").MergeArea.Locked = True Craig wrote: 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 "Craig" wrote in message news:oPwTe.418967$5V4.404463@pd7tw3no... 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 ? ? ? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Locked worksheet & hyperlinks (w/ select locked cells unchecked) | Excel Discussion (Misc queries) | |||
locked cell not locked | Excel Discussion (Misc queries) | |||
Dealing with Text in a Function cell | Excel Worksheet Functions | |||
Dealing with range of numbers in a cell | Excel Worksheet Functions | |||
dealing with cell text limits | Excel Discussion (Misc queries) |