- Katılım
- 18 Nisan 2008
- Mesajlar
- 1,125
- Excel Vers. ve Dili
- office2010
Merhaba,
Bu kodu deneyin.
Bu kodu deneyin.
Kod:
Sub aktar()
Set s1 = Sheets("VERİ ")
Set s2 = Sheets("RAPOR")
a = s1.Range("A2:AL" & s1.Cells(Rows.Count, 1).End(3).Row)
Set d = CreateObject("scripting.dictionary")
For i = 1 To UBound(a)
If a(i, 38) = "BEKLİYOR" Then
d(a(i, 1)) = a(i, 1)
End If
Next i
If d.Count > 0 Then
For i = 1 To UBound(a)
For Each v In d.keys
If a(i, 1) <> Empty And a(i, 1) <> v Then
say = say + 1
a(say, 1) = a(i, 1)
a(say, 2) = a(i, 38)
End If
Next v
Next i
s2.Range("A2:B" & Rows.Count).ClearContents
s2.[A2].Resize(say, 2) = a
End If
MsgBox "İşlem tamam.", vbInformation
End Sub
