- Katılım
- 10 Kasım 2006
- Mesajlar
- 399
- Excel Vers. ve Dili
- microsoft office 2007-2010-2013-2019-2021
İyi günler diliyorum, elim de aşağıdaki gibi bir veri aktarma kodu var yaklaşık 2500 kişi aktarıyorum, aktarma işlemi yaklaşık 3 veya 4 dakika sürüyor kodu yeniden düzenleyerek daha hızlı aktarma yapabilir miyiz. Teşekkür ederim.
Sub BODROAKTAR()
On Error Resume Next
Set S1 = Sheets("ÖDEME")
Set s3 = Sheets("BODRO")
s3.Range("A2:J3000").ClearContents
sat = s3.[B3000].End(3).Row + 1
Application.ScreenUpdating = False
For y = 2 To S1.[a3000].End(3).Row + 1
If S1.Cells(y, 2).Value > 0 Then
s3.Cells(sat, 1).Value = S1.Cells(y, 1).Value
s3.Cells(sat, 2).Value = S1.Cells(y, 2).Value
s3.Cells(sat, 3).Value = S1.Cells(y, 3).Value
s3.Cells(sat, 4).Value = S1.Cells(y, 8).Value
s3.Cells(sat, 5).Value = S1.Cells(y, 4).Value
s3.Cells(sat, 6).Value = S1.Cells(y, 9).Value
s3.Cells(sat, 7).Value = S1.Cells(y, 12).Value
s3.Cells(sat, 8).Value = S1.Cells(y, 13).Value
s3.Cells(sat, 9).Value = S1.Cells(y, 14).Value
s3.Cells(sat, 10).Value = S1.Cells(y, 15).Value
sat = sat + 1
End If
Next
MsgBox "Ödeme Aktarıldı", , ""
Application.ScreenUpdating = True
End Sub
Sub BODROAKTAR()
On Error Resume Next
Set S1 = Sheets("ÖDEME")
Set s3 = Sheets("BODRO")
s3.Range("A2:J3000").ClearContents
sat = s3.[B3000].End(3).Row + 1
Application.ScreenUpdating = False
For y = 2 To S1.[a3000].End(3).Row + 1
If S1.Cells(y, 2).Value > 0 Then
s3.Cells(sat, 1).Value = S1.Cells(y, 1).Value
s3.Cells(sat, 2).Value = S1.Cells(y, 2).Value
s3.Cells(sat, 3).Value = S1.Cells(y, 3).Value
s3.Cells(sat, 4).Value = S1.Cells(y, 8).Value
s3.Cells(sat, 5).Value = S1.Cells(y, 4).Value
s3.Cells(sat, 6).Value = S1.Cells(y, 9).Value
s3.Cells(sat, 7).Value = S1.Cells(y, 12).Value
s3.Cells(sat, 8).Value = S1.Cells(y, 13).Value
s3.Cells(sat, 9).Value = S1.Cells(y, 14).Value
s3.Cells(sat, 10).Value = S1.Cells(y, 15).Value
sat = sat + 1
End If
Next
MsgBox "Ödeme Aktarıldı", , ""
Application.ScreenUpdating = True
End Sub
