Nej, det er intet problem, du skal bare opdatere koden med denne:
Private Const koden = "123"
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error Resume Next
If Target.Address = "$K$43" Then
If MsgBox("Du er ved at låse arket, vil du fortsætte?", vbInformation + vbYesNo, "STÅLKON") <> vbYes Then Exit Sub
ActiveSheet.Unprotect koden
Range("D8:K8,B13:F19,I13:L19,B21:L27,B29:L36,B38:L42").Locked = True
ActiveSheet.Protect "123"
Ark1.Activate
Range("A1").Select
End If
If Target.Address = "$Q$43" Then
ActiveSheet.Unprotect
Range("D8:K8,B13:F19,I13:L19,B21:L27,B29:L36,B38:L42").Locked = False
ActiveSheet.Protect koden
End If
End Sub
//Allan