- Katılım
- 13 Mayıs 2005
- Mesajlar
- 761
- Excel Vers. ve Dili
- 2010 Türkçe
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Sub arsivle()
'Asri Akdeniz - www.asriakdeniz.com - asriakdeniz@gmail.com
Set shp = Sheets("Puantaj")
Set sha = Sheets("Arşiv")
sonsatirp = shp.Cells(shp.Rows.Count, "B").End(3).Row
sonsutunp = shp.Cells(2, shp.Columns.Count).End(xlToLeft).Column
For j = 3 To sonsatirp
tcno = shp.Cells(j, "B").Value
satir = 0
satir = varmi(tcno)
If satir > 0 And tcno <> "" Then
For i = 5 To sonsutunp
tarih = shp.Cells(2, i).Value
sutun = varmic(tarih)
sutun = 0
If sutun > 0 And tarih <> "" Then
sha.Cells(satir, sutun).Value = shp.Cells(j, i).Value
End If
Next i
ElseIf tcno <> "" Then
sonsatira = sha.Cells(sha.Rows.Count, "B").End(3).Row + 1
If sonsatira < 3 Then sonsatira = 3
sha.Cells(sonsatira, "B").Value = shp.Cells(j, "B").Value
sha.Cells(sonsatira, "C").Value = shp.Cells(j, "C").Value
sha.Cells(sonsatira, "D").Value = shp.Cells(j, "D").Value
j = j - 1
End If
Next j
End Sub
Function varmi(bilgi) As Long
Set sayfak = Sheets("Arşiv").Range("B:B").Find(bilgi, , xlValues, xlWhole)
If Not sayfak Is Nothing Then
varmi = sayfak.Row
Exit Function
End If
varmi = 0
End Function
Function varmic(bilgi) As Long
Set sayfak = Sheets("Arşiv").Range("E2:NZ2").Find(CDate(bilgi), , xlFormulas, xlWhole)
If Not sayfak Is Nothing Then
varmic = sayfak.Column
Exit Function
End If
varmic = 0
End Function
Puantaj sayfasındaki tüm bilgiler arşiv e aktarılıyor. X F nedir anlamadım.Puantaj bilgilerinide aktarmam lazım. X F vb. bilgileride
Sub arsivle()
'Asri Akdeniz - www.asriakdeniz.com - asriakdeniz@gmail.com
Set shp = Sheets("Puantaj")
Set sha = Sheets("Arşiv")
sonsatirp = shp.Cells(shp.Rows.Count, "B").End(3).Row
sonsutunp = shp.Cells(2, shp.Columns.Count).End(xlToLeft).Column
Application.ScreenUpdating = False
For j = 3 To sonsatirp
tcno = shp.Cells(j, "B").Value
satir = 0
satir = varmi(tcno)
If satir > 0 And tcno <> "" Then
For i = 5 To sonsutunp
tarih = shp.Cells(2, i).Value
sutun = 0
sutun = varmic(tarih)
If sutun > 0 And tarih <> "" Then
sha.Cells(satir, sutun).Value = shp.Cells(j, i).Value
End If
Next i
ElseIf tcno <> "" Then
sonsatira = sha.Cells(sha.Rows.Count, "B").End(3).Row + 1
If sonsatira < 3 Then sonsatira = 3
sha.Cells(sonsatira, "B").Value = shp.Cells(j, "B").Value
sha.Cells(sonsatira, "C").Value = shp.Cells(j, "C").Value
sha.Cells(sonsatira, "D").Value = shp.Cells(j, "D").Value
j = j - 1
End If
Next j
Application.ScreenUpdating = True
MsgBox ("Arşivleme işlemi tamamlandı")
End Sub
Function varmi(bilgi) As Long
Set sayfak = Sheets("Arşiv").Range("B:B").Find(bilgi, , xlValues, xlWhole)
If Not sayfak Is Nothing Then
varmi = sayfak.Row
Exit Function
End If
varmi = 0
End Function
Function varmic(bilgi) As Long
Set sayfak = Sheets("Arşiv").Range("E2:NZ2").Find(CDate(bilgi), , xlFormulas, xlWhole)
If Not sayfak Is Nothing Then
varmic = sayfak.Column
Exit Function
End If
varmic = 0
End Function