gicimi
Altın Üye
- Katılım
- 3 Şubat 2008
- Mesajlar
- 593
- Excel Vers. ve Dili
- Office 2016 Eng. 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Merhaba;
Eki deneyin.
İyi çalışmalar.
Sub akta_cikar59()
Dim i As Long, sonsat1 As Long, sonsat2 As Long
Dim sh As Worksheet, k As Range, sut1 As Byte, sut2 As Byte
Sheets("Sayfa1").Select
Set sh = Sheets("Sayfa2")
Range("E2:Q" & Rows.Count).ClearContents
sonsat1 = Cells(Rows.Count, "A").End(xlUp).Row
sonsat2 = sh.Cells(Rows.Count, "A").End(xlUp).Row
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
For i = 2 To sonsat1
Set k = sh.Range("A1:A" & Rows.Count).Find(Cells(i, "A").Value, , xlValues, xlWhole)
If Not k Is Nothing Then
adr = k.Address
sut1 = 5
sut2 = 11
Do
Cells(i, sut1).Value = k.Offset(0, 3).Value
Cells(i, sut2).Value = k.Offset(0, 7).Value
sut1 = sut1 + 1: sut2 = sut2 + 1
Set k = sh.Range("A1:A" & Rows.Count).FindNext(k)
Loop While Not k Is Nothing And k.Address <> adr
Range("Q" & i).Value = Range("K" & i).Value - Range("E" & i).Value
End If
Next i
Application.Calculation = xlCalculationAutomatic
Application.ScreenUpdating = True
MsgBox "İşlem Tamamlandı." & vbLf & "evrengizlen@hotmail.com"
End Sub
Evren Bey çok teşekkür ederim. İyi Çalışmalar.