DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, [A1]) Is Nothing Then Exit Sub
On Error GoTo son
If Target.Value = 1 Then
Range("A2").Locked = True
ActiveSheet.Protect
Else
ActiveSheet.Unprotect
End If
son:
End Sub
Rica ederim.işte bu ...
Çok teşekkür ederim tam aradığım şey....
Ellerinize sağlık...
Merhaba.
Ekli dosyayı inceleyiniz.
Kodlarda aşağıdadır.
Kod:Private Sub Worksheet_Change(ByVal Target As Range) If Intersect(Target, [A1]) Is Nothing Then Exit Sub On Error GoTo son If Target.Value = 1 Then Range("A2").Locked = True ActiveSheet.Protect Else ActiveSheet.Unprotect End If son: End Sub
Range("A2").Locked = True
Range("B:B").Locked = True