- Katılım
- 4 Mayıs 2007
- Mesajlar
- 3,677
- Excel Vers. ve Dili
- 2016 PRO TÜRKÇE-İNG. 64 BİT
arkadaşlar merhaba aşağıdaki kodda b ve d sütünlarındaki değişikliklere göre tepkiler vermesini istedim ama istediğim gibi çalıştıramadım
kodun nasıl düzeltmek gerekiyor, iyi çalışmalar
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
If Intersect(Target, [d:d]) Is Nothing Then Exit Sub
For i = 1 To [d1000].End(3).Row
If Len(Cells(i, 4)) = 11 Then
Cells(i, 5) = Cells(i, 4)
Cells(i, 4).Clear
End If
Next i
If Intersect(Target, [b:b]) Is Nothing Then Exit Sub
For k = 1 To [b1000].End(3).Row
Cells(i, 1) = Cells(i, 1).Row
Cells(i, 3) = "TÜRKİYE"
Next k
Application.ScreenUpdating = True
End Sub
kodun nasıl düzeltmek gerekiyor, iyi çalışmalar
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
If Intersect(Target, [d:d]) Is Nothing Then Exit Sub
For i = 1 To [d1000].End(3).Row
If Len(Cells(i, 4)) = 11 Then
Cells(i, 5) = Cells(i, 4)
Cells(i, 4).Clear
End If
Next i
If Intersect(Target, [b:b]) Is Nothing Then Exit Sub
For k = 1 To [b1000].End(3).Row
Cells(i, 1) = Cells(i, 1).Row
Cells(i, 3) = "TÜRKİYE"
Next k
Application.ScreenUpdating = True
End Sub
