DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
a = Target.Column
If a <> 3 Then Exit Sub
Target.Cells.Value = "+"
Target.Cells.Offset(1, 0).Select
End Sub
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If Target.Count > 1 Then Exit Sub
a = Target.Column
If a <> 3 Then Exit Sub
Target.Cells.Value = "-"
End Sub
Merhaba,
sayfanızın kod bölümüne kodları kopyalayıp deneyiniz. Kolay gelsin.
Kod:Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) a = Target.Column If a <> 3 Then Exit Sub Target.Cells.Value = "+" Target.Cells.Offset(1, 0).Select End Sub Private Sub Worksheet_SelectionChange(ByVal Target As Range) If Target.Count > 1 Then Exit Sub a = Target.Column If a <> 3 Then Exit Sub Target.Cells.Value = "-" End Sub
Option Explicit
Dim aLan As Range
[COLOR=green]' * Hücre seçilince "+" işareti eklenir.[/COLOR]
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Set aLan = Range(Cells(2, 3), Cells(Rows.Count, Columns.Count))
If Intersect(Target, aLan) Is Nothing Then Exit Sub
If Selection.Cells.Count > 1 Then Exit Sub
Target = "+"
End Sub
[COLOR=green]'------------------------------------------------------------------- [/COLOR]
[COLOR=green]' * Hücreye çift tıklama yapılırsa "-" işareti eklenir.[/COLOR]
[COLOR=green]' * Çift tıklamalar da kod sizi 1 saniye bekletecektir.[/COLOR]
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, _
Cancel As Boolean)
If Intersect(Target, aLan) Is Nothing Then Exit Sub
Target = "-"
Application.Wait Now + TimeValue("00:00:01")
SendKeys "{ESC}"
End Sub