Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am trying to make a cell Locked or Unlocked by using the Combo Box value.
But when I click on one of the Combo drop down values, I get the message: "The cell is protected and can not be wriiten to" Any Suggestions? Aksel Private Sub ComboBox3_Change() ActiveSheet.Unprotect password:="*******" Application.ScreenUpdating = False If ComboBox3.Value = "NONE" Then GoTo Line1 Else GoTo Line2 Line1: 'Protect Cell G18 With ActiveSheet.Range("G18") ..FormulaR1C1 = "" ..Locked = True ..Interior.ColorIndex = 15 End With GoTo Lastline Line2: Unprotect the Cell G18 With ActiveSheet.Range("G18") ..Locked = False ..Interior.ColorIndex = xlNone End With Lastline: ActiveSheet.Range("J24").Select ActiveSheet.Protect password:="driller", DrawingObjects:=True, Contents:=True, Scenarios:=True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
linking a form combo box... results from the combo box to another | Excel Discussion (Misc queries) | |||
combo reference on another combo box for picking address etc. | Excel Worksheet Functions | |||
Can one combo box control the data in a different combo box | Excel Discussion (Misc queries) | |||
"Combo Box - getting control combo box to stick in place in worksh | Excel Discussion (Misc queries) | |||
"Combo Box - getting control combo box to stick in place in worksh | Excel Discussion (Misc queries) |