- Katılım
- 27 Aralık 2010
- Mesajlar
- 33
- Excel Vers. ve Dili
- 2007
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub AKTAR()
Dim S1 As Worksheet, S2 As Worksheet
Dim Veri As Range, BUL As Range, Y As Byte
Application.ScreenUpdating = False
Set S1 = Sheets("Cetvel")
Set S2 = Sheets("EKDERS")
For Each Veri In S1.Range("B9:B" & S1.Cells(Rows.Count, 2).End(3).Row + 2)
Y = 6
If Veri.Value <> "" Then
Set BUL = S2.Range("D:D").Find(Veri.Value, , , xlWhole)
If Not BUL Is Nothing Then
If BUL.Row = 61 Then
MsgBox "EKDERS isimli sayfa dolmuştur." & Chr(10) & _
"Bu sebeple aktarım işlemi iptal edilmiştir.", vbCritical
Set BUL = Nothing
Set S1 = Nothing
Set S2 = Nothing
Application.ScreenUpdating = True
Exit Sub
End If
For X = 5 To 66 Step 2
If S1.Cells(5, X) <> "Cumartesi" And S1.Cells(5, X) <> "Pazar" Then
S2.Cells(BUL.Row, Y) = S1.Cells(Veri.Row + 1, X)
End If
Y = Y + 1
Next
End If
End If
Next
Set BUL = Nothing
Set S1 = Nothing
Set S2 = Nothing
Application.ScreenUpdating = True
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Merhaba,
Üstteki mesajımdaki kodu güncelledim. Tekrar denermisiniz.