- Katılım
- 17 Nisan 2013
- Mesajlar
- 101
- Excel Vers. ve Dili
- 2007 Microsoft Office Türkçe
Alttaki iki kod Worksheet_Change de çalışmıyor . iki kodu aynı anda çalışmasını sağlabilirmiyiz acaba . Alttaki şekilde hangi kod üstteyse o çalışıyor . yardımcı olurmusunuz 
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Dim s As Long
If Intersect(Target, Range("b5:b55")) Is Nothing Then Exit Sub
For i = 5 To Range("b55").End(3).Row
If Cells(i, 2).Value <> "" Then
s = s + 1
Cells(i, 1).Value = s
End If
Next i
If Target.Value = "" Then
Target.Offset(0, -1).ClearContents
End If
On Error Resume Next
If Intersect(Target, Range("By5:cC55,CE5:CG55")) Is Nothing Then Exit Sub
On Error Resume Next
Application.EnableEvents = False
Target.Value = UCase(Replace(Replace(Target.Value, "ı", "I"), "i", "İ"))
Application.EnableEvents = True
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
On Error Resume Next
Dim s As Long
If Intersect(Target, Range("b5:b55")) Is Nothing Then Exit Sub
For i = 5 To Range("b55").End(3).Row
If Cells(i, 2).Value <> "" Then
s = s + 1
Cells(i, 1).Value = s
End If
Next i
If Target.Value = "" Then
Target.Offset(0, -1).ClearContents
End If
On Error Resume Next
If Intersect(Target, Range("By5:cC55,CE5:CG55")) Is Nothing Then Exit Sub
On Error Resume Next
Application.EnableEvents = False
Target.Value = UCase(Replace(Replace(Target.Value, "ı", "I"), "i", "İ"))
Application.EnableEvents = True
End Sub
