kemal turan
Altın Üye
- Katılım
- 10 Haziran 2011
- Mesajlar
- 1,677
- Excel Vers. ve Dili
- Excel 2010 32 bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Private Sub Worksheet_Change(ByVal Target As Range)
If Intersect(Target, Range("A2:G" & Rows.Count)) Is Nothing Then Exit Sub
With Target
Cells(.Row, "H") = "=F" & .Row & "-G" & .Row & ""
End With
End Sub
Sub FormulKopyala()
Dim son As Long
Range("I2") = "=G2-H2"
son = Cells(Rows.Count, "B").End(xlUp).Row
Range("I2").Copy Range("I3:I" & son)
End Sub
Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
On Error GoTo Son
[COLOR=red] If Application.CutCopyMode = xlCopy Or Application.CutCopyMode = xlCut Then Exit Sub
[/COLOR] If WorksheetFunction.CountA(Range("A" & Target.Row & ":H" & Target.Row)) = 0 Then Exit Sub
Application.EnableEvents = False
Range("H2") = "=RC[-2]-RC[-1]"
Range("H2").AutoFill Destination:=Range("H2:H" & Cells(Rows.Count, 1).End(3).Row), Type:=xlFillDefault
With Range("H2:H" & Cells(Rows.Count, 1).End(3).Row)
.Value = .Value
End With
Son:
Application.EnableEvents = True
End Sub