tahsinanarat
Altın Üye
- Katılım
- 14 Mart 2005
- Mesajlar
- 2,181
- Excel Vers. ve Dili
- Ofis 2019 Türkçe
Mükerrer oldu, dosyam 2.mesajımda
Son düzenleme:
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Case 2
Case 2, 3
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Static EskiHucre As Range
On Error GoTo Son
If Intersect(Target, [B2:K81]) Is Nothing Then Exit Sub
If Target.Font.ColorIndex = 2 Then Exit Sub
[M2] = Target.Value
On Error Resume Next
If Target.Interior.ColorIndex = 15 Then
Target.Interior.ColorIndex = 2
EskiHucre.Interior.ColorIndex = xlColorIndexNone
Set EskiHucre = Target
Else
EskiHucre.Interior.ColorIndex = xlColorIndexNone
End If
Son:
End Sub
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo Son
If Intersect(Target, [M2]) Is Nothing Then Exit Sub
Select Case Len([M2])
Case 1
Sat = 2
sut = [M2] + 1
Case 2, 3
Sat = Left([M2], 1) + 2
sut = Right([M2], 1) + 1
If sut = 1 Then
sut = 11
Sat = Sat - 1
End If
End Select
Sonsat = [M65536].End(3).Row + 1
Cells(Sonsat, "M") = Target
Cells(Sonsat, "N") = Now
Target.Offset(0, 0).Select
Son:
End Sub
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
On Error GoTo Son
If Intersect(Target, Range("B2:K81")) Is Nothing Then Exit Sub
If Target.Font.ColorIndex = 2 Then Exit Sub
Cancel = True
Range("M2") = Target.Value
Target.Interior.ColorIndex = 2
Target.Font.ColorIndex = 2
Satir = Cells(Rows.Count, "M").End(3).Row + 1
Cells(Satir, "M") = Target
Cells(Satir, "N") = Now
Son:
End Sub