- Katılım
- 15 Temmuz 2012
- Mesajlar
- 2,802
- Excel Vers. ve Dili
- Ofis 2021 TR 64 Bit
Merhaba hayırlı akşamlar.
Aşağıdaki kodlar bu şekilde çalışıyor.
Kodu aşağıdaki gibi yaptığımda hiç biri çalışmıyor.
If Target.Column = 4 Or Target.Column = 5 Or Target.Column = 6 Or Target.Column = 7 Then
If Target.Row >= 7 And Target.Row <= 56 Then
Yani kod içerisindeki yukarıdaki kısmi aşağıdaki kod ile değiştirdim, kod çalışmadı.
If Intersect(Target, Range("D7:G56")) Is Nothing Then
Kod'un alt kısmına aşağıdaki kodu ekledim bu sefer hiç biri çalışmadı.
If Intersect(Target, Range("O6,R6")) Is Nothing Then Exit Sub
Sheets("ASLAN").Range("H58").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H59").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H60").FormulaR1C1 = "=R[-52]C[22]"
Yardımcı olur musunuz?
Aşağıdaki kodlar bu şekilde çalışıyor.
Kod:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column = 4 Or Target.Column = 5 Or Target.Column = 6 Or Target.Column = 7 Then
If Target.Row >= 7 And Target.Row <= 56 Then
On Error Resume Next
If Target.Value <> "" Then
Application.EnableEvents = False
Target.Value = WorksheetFunction.Proper(Target.Value)
Application.EnableEvents = True
End If
End If
End If
On Error Resume Next
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
If Target <> UCase(Replace(Replace(Target, "i", "İ"), "ı", "I")) Then _
Target = UCase(Replace(Replace(Target, "i", "İ"), "ı", "I"))
End Sub
Kodu aşağıdaki gibi yaptığımda hiç biri çalışmıyor.
Kod:
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("D7:G56")) Is Nothing Then
On Error Resume Next
If Target.Value <> "" Then
Application.EnableEvents = False
Target.Value = WorksheetFunction.Proper(Target.Value)
Application.EnableEvents = True
End If
On Error Resume Next
If Intersect(Target, [A3]) Is Nothing Then Exit Sub
If Target <> UCase(Replace(Replace(Target, "i", "İ"), "ı", "I")) Then _
Target = UCase(Replace(Replace(Target, "i", "İ"), "ı", "I"))
If Intersect(Target, Range("O6,R6")) Is Nothing Then Exit Sub
Sheets("ASLAN").Range("H58").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H59").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H60").FormulaR1C1 = "=R[-52]C[22]"
End Sub
If Target.Row >= 7 And Target.Row <= 56 Then
Yani kod içerisindeki yukarıdaki kısmi aşağıdaki kod ile değiştirdim, kod çalışmadı.
If Intersect(Target, Range("D7:G56")) Is Nothing Then
Kod'un alt kısmına aşağıdaki kodu ekledim bu sefer hiç biri çalışmadı.
If Intersect(Target, Range("O6,R6")) Is Nothing Then Exit Sub
Sheets("ASLAN").Range("H58").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H59").FormulaR1C1 = "=R[-52]C[22]"
Sheets("ASLAN").Range("H60").FormulaR1C1 = "=R[-52]C[22]"
Yardımcı olur musunuz?
