Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Set alan = Application.Union([c6:c15], [g6:g15], [k6:k15], [o6:o15], [s6:s15], [c18:c27], [g18:g27], [k18:k27], [o18:o27], [s18:s27])
If Intersect(Target, alan) Is Nothing Then Exit Sub
Cancel = True
Set bul = [w5:w49].Find(Target, , , xlWhole)
If Not bul Is Nothing Then
adet = Cells(bul.Row, "x").Value
Cells(bul.Row, "x").Value = Target.Offset(0, 1).Value + adet
Else
sat = [w50].End(3).Row + 1
If sat = 50 Then
MsgBox "Tablo Tamamlandı"
GoTo Son
End If
Cells(sat, "w").Value = Target.Value
Cells(sat, "x").Value = Target.Offset(0, 1).Value
For Each renk In alan
If renk.Value = Target.Value Then renk.Interior.ColorIndex = 6
Next
End If
Target.Interior.ColorIndex = 6
Son:
Set alan = Nothing
Set bul = Nothing
Set bul1 = Nothing
Exit Sub
End Sub