- Katılım
- 29 Ekim 2007
- Mesajlar
- 84
- Excel Vers. ve Dili
- excel 2016 tr.
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Kodu deneyiniz.Sub görev_ekle()
Application.ScreenUpdating = False
Set p = Sheets("PERSEÇ")
For i = 4 To 3 + Range("B1")
tc = Cells(i, 4)
x = WorksheetFunction.Match(tc, p.Range("G1:G10000"), 0)
y = WorksheetFunction.CountA(p.Range("M" & x & ":GG" & x)) + 13
p.Cells(x, y) = Cells(i, 8).Value
p.Cells(x, y + 1) = Cells(i, 9).Value
Next
End Sub
Kodu deneyiniz.Sub görev_ekle()
Application.ScreenUpdating = False
Set p = Sheets("PERSEÇ")
For i = 4 To 3 + Range("B1")
tc = Cells(i, 4)
x = WorksheetFunction.Match(tc, p.Range("G1:G10000"), 0)
izin = WorksheetFunction.CountIf(p.Range("M" & x & ":GG" & x), "İZİNLİ")
y = WorksheetFunction.CountA(p.Range("M" & x & ":GG" & x)) + 13 + izin
p.Cells(x, y) = Cells(i, 8).Value
p.Cells(x, y + 1) = Cells(i, 9).Value
Next
End Sub
Sub görev12()
Application.ScreenUpdating = False
Set p = Sheets("PERSEÇ")
p.Range("H1") = p.Range("H1") + 1
For i = 4 To 3 + Range("B1")
tc = Cells(i, 4)
x = WorksheetFunction.Match(tc, p.Range("G1:G10000"), 0)
y = p.Range("H1") * 2 + 11
p.Cells(x, y) = Cells(i, 8).Value
p.Cells(x, y + 1) = Cells(i, 9).Value
Next
End Sub