- Katılım
- 18 Ağustos 2007
- Mesajlar
- 22,183
- Excel Vers. ve Dili
- Microsoft 365 Tr
Ofis 2016 Tr
Eski kodların üzerine ilave yapmışım. Kodlar karıştı 
Bu şekilde deneyin.
.
Bu şekilde deneyin.
Kod:
Sub BulAktar()
Dim Sd As Worksheet, sat As Long, sut As Byte, c As Range, Adr As String
Set Sd = Sheets("Data")
Application.ScreenUpdating = False
sat = Cells(Rows.Count, "K").End(xlUp).Row + 1
If Range("K5") = "" Then sat = 5
With Sd.Range("D:F")
Set c = .Find(Range("C2"), , xlValues, xlWhole)
If Not c Is Nothing Then
Adr = c.Address
Do
If c.Column <> 5 Then
sut = 4
If c.Column = 4 Then sut = 6
If Sd.Cells(c.Row, "N") = "" And Sd.Cells(c.Row, "H") <> "" Then
If Sd.Cells(c.Row, sut) = Range("E2") Then
Sd.Range("B" & c.Row, "C" & c.Row).Copy
Cells(sat, "H").PasteSpecial Paste:=xlPasteValues
Cells(sat, "J") = Sd.Cells(c.Row, "E")
Cells(sat, "K") = Sd.Cells(c.Row, "D")
Sd.Range("H" & c.Row, "L" & c.Row).Copy
Cells(sat, "L").PasteSpecial Paste:=xlPasteValues
Cells(sat, "Q") = Sd.Cells(c.Row, "F")
Sd.Cells(c.Row, "N") = "Ok"
sat = sat + 1
End If
End If
End If
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> Adr
End If
End With
Range("C2").Select
Application.CutCopyMode = False
Application.ScreenUpdating = True
End Sub
.
