- 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 kod çalışıyor ama kilitlenme ve kendini kapatma kısmını bir türlü çözemedim
Herkese iyi çalışmalar
Aşağıdaki kod çalışıyor ama kilitlenme ve kendini kapatma kısmını bir türlü çözemedim
Herkese iyi çalışmalar
Kod:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo son
If Target.Column = 2 Then
If Target.Count > 1 Then
For i = 1 To Target.Count
If Selection(i, 1).Value <> "" Then
Selection(i, 1).Offset(0, -1).Value = Selection(i, 1).Row
Selection(i, 1).Offset(0, 1).Value = "TÜRKİYE"
End If
Next i
ElseIf Target.Value <> "" Then
Cells(Target.Row, 1).Value = Target.Row
Cells(Target.Row, 3).Value = "TÜRKİYE"
Else
Cells(Target.Row, 1).Value = ""
Cells(Target.Row, 3).Value = ""
End If
End If
If Target.Column = 7 Then
If Target.Count > 1 Then
For i = 1 To Target.Count
If Selection(i, 1).Value <> "" Then
Selection(i, 1).Value = Int(Selection(i, 1))
End If
Next i
ElseIf Target.Value <> "" Then
Cells(Target.Row, 7) = Int(Target.Value)
End If
End If
If Intersect(Target, [d:d]) Is Nothing Then Exit Sub
For t = 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 t
son:
End Sub
