Arkadaşlar selam.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If flag = 1 Then
If Not IsEmpty(oval) Then
If Not Intersect(Target, Target.Worksheet.Range("J10:J500")) Is Nothing Then
Target.Value = Target.Value + oval
End If
If Not Intersect(Target, Target.Worksheet.Range("L10:L500")) Is Nothing Then
Target.Value = Target.Value + oval
End If
End If
flag = 0
End If
Application.EnableEvents = True
On Error Resume Next
stn = Target.Column
satr = Target.Row
If Not Intersect(Target, [D2
200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 1).Select
ElseIf Not Intersect(Target, [E2:E200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 1).Select
ElseIf Not Intersect(Target, [F2:F200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 4).Select
ElseIf Not Intersect(Target, [J2:J200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 2).Select
ElseIf Not Intersect(Target, [L2:L200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr + 1, stn - 8).Select
End If
End Sub
Bu kodlarla, sayfa içerisinde J ve L sütunlarına girdiğim rakamları üstüne topluyor (örneğin J15 hücresinde 5 rakamı varsa aynı hücreye 8 değerini girdiğimde hücre değeri 13 oluyor) ve hücreye veri girip enter tuşuna bastığımda; D-E-F-J ve L hücreleri arasında geziniyordum.
Ben;
If Intersect(Target, Range("D:E")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Value = Evaluate("=UPPER(""" & Target.Value & """)")
Application.EnableEvents = True
Kodlarını ilave edip aynı sayfanın D ve E sütunlarına girdiğim veriyi büyük harfe çevirmek istedim. Kodlar çalışıyor fakat ya hücre üzerine ilave toplama özelliği ya da enter tuşuna basınca istediğim hücreler arasında gezinme özelliği çalışmıyor. İkinci kodlarımı birinci kodların hangi bölümüne ilave etmeliyim?
Umarım anlatabilmişimdir.
Şimdiden teşekkürler.
Private Sub Worksheet_Change(ByVal Target As Range)
Application.EnableEvents = False
If flag = 1 Then
If Not IsEmpty(oval) Then
If Not Intersect(Target, Target.Worksheet.Range("J10:J500")) Is Nothing Then
Target.Value = Target.Value + oval
End If
If Not Intersect(Target, Target.Worksheet.Range("L10:L500")) Is Nothing Then
Target.Value = Target.Value + oval
End If
End If
flag = 0
End If
Application.EnableEvents = True
On Error Resume Next
stn = Target.Column
satr = Target.Row
If Not Intersect(Target, [D2
If Cells(satr, stn) <> "" Then Cells(satr, stn + 1).Select
ElseIf Not Intersect(Target, [E2:E200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 1).Select
ElseIf Not Intersect(Target, [F2:F200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 4).Select
ElseIf Not Intersect(Target, [J2:J200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr, stn + 2).Select
ElseIf Not Intersect(Target, [L2:L200]) Is Nothing Then
If Cells(satr, stn) <> "" Then Cells(satr + 1, stn - 8).Select
End If
End Sub
Bu kodlarla, sayfa içerisinde J ve L sütunlarına girdiğim rakamları üstüne topluyor (örneğin J15 hücresinde 5 rakamı varsa aynı hücreye 8 değerini girdiğimde hücre değeri 13 oluyor) ve hücreye veri girip enter tuşuna bastığımda; D-E-F-J ve L hücreleri arasında geziniyordum.
Ben;
If Intersect(Target, Range("D:E")) Is Nothing Then Exit Sub
Application.EnableEvents = False
Target.Value = Evaluate("=UPPER(""" & Target.Value & """)")
Application.EnableEvents = True
Kodlarını ilave edip aynı sayfanın D ve E sütunlarına girdiğim veriyi büyük harfe çevirmek istedim. Kodlar çalışıyor fakat ya hücre üzerine ilave toplama özelliği ya da enter tuşuna basınca istediğim hücreler arasında gezinme özelliği çalışmıyor. İkinci kodlarımı birinci kodların hangi bölümüne ilave etmeliyim?
Umarım anlatabilmişimdir.
Şimdiden teşekkürler.