View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Shinya Koizumi Shinya Koizumi is offline
external usenet poster
 
Posts: 7
Default Disable a cell in excel

Now I kinda figured it out. But the problem is when
selecting the disabled cell and drag outside to extend
the series, the protection is only applied to the original
one. Is there any workaround?

Sub prt()
With ActiveSheet
.Cells.Locked = False
With Range("B4")
.Value = "MyValue"
.Interior.ColorIndex = 15
.Locked = True
End With
.Protect Password:="mypassword"
End With
End Sub


SK