DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Nereye, nasıl almak istiyor sunuz ?
Sub Aktar()
Sayfa2.Columns("L:R").Delete
With Sayfa1
s = .[A65536].End(3).Row
For i = 2 To s
If .Cells(i, 1) = Sayfa2.[k4] Then
r = .Cells(i, 1).MergeArea.Rows.Count
.Range("B" & i & ":" & "h" & r + i - 1).Copy Sayfa2.[L4]
End If
Next
End With
End Sub
Kod:Sub Aktar() Sayfa2.Columns("L:R").Delete With Sayfa1 s = .[A65536].End(3).Row For i = 2 To s If .Cells(i, 1) = Sayfa2.[k4] Then r = .Cells(i, 1).MergeArea.Rows.Count .Range("B" & i & ":" & "h" & r + i - 1).Copy Sayfa2.[L4] End If Next End With End Sub
Sub aktarim_yap()
sat = 20
With Sheets("Sayfa2").Range("B:B")
Set c = .Find(Sheets("baslik").Range("D3"), LookIn:=xlValues, LookAt:=xlWhole)
If Not c Is Nothing Then
ilkadres = c.Address
Do
Sheets("baslik").Cells(sat, "A") = Sheets("Sayfa2").Cells(c.Row, "C")
sat = sat + 1
Set c = .FindNext(c)
Loop While Not c Is Nothing And c.Address <> ilkadres
End If
End With
End Sub
Kod:Sub Aktar() Sayfa2.Columns("L:R").Delete With Sayfa1 s = .[A65536].End(3).Row For i = 2 To s If .Cells(i, 1) = Sayfa2.[k4] Then r = .Cells(i, 1).MergeArea.Rows.Count .Range("B" & i & ":" & "h" & r + i - 1).Copy Sayfa2.[L4] End If Next End With End Sub