- Katılım
- 12 Kasım 2008
- Mesajlar
- 240
- Excel Vers. ve Dili
- 2010-2013
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, Range("H3:H65536,K3:K65536,N3:N65536")) Is Nothing Then Exit Sub
Application.EnableEvents = False
If Cells(Target.Row, "B") = "" Then
MsgBox "Lütfen ADI-SOYADI bilgisi dolu satırlara izin süresi giriniz !", vbCritical, "Dikkat !"
Target.ClearContents
Target.Select
Application.EnableEvents = True
Exit Sub
End If
If Target <> "" And IsNumeric(Target) Then
Select Case Target.Column
Case Is = 8
If Cells(Target.Row, "G") <> "" Then
Cells(Target.Row, "G") = Cells(Target.Row, "G") - Target
Else
If Cells(Target.Row, "D") > 9 Then
Cells(Target.Row, "G") = 30 - Target
Else
Cells(Target.Row, "G") = 20 - Target
End If
End If
Case Is = 11
If Cells(Target.Row, "J") <> "" Then
Cells(Target.Row, "J") = Cells(Target.Row, "J") - Target
Else
Cells(Target.Row, "J") = 10 - Target
End If
Case Is = 14
If Cells(Target.Row, "M") <> "" Then
Cells(Target.Row, "M") = Cells(Target.Row, "M") - Target
Else
Cells(Target.Row, "M") = 7 - Target
End If
End Select
End If
Son:
Application.EnableEvents = True
End Sub