DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Base 1
Sub VERİLERİ_GÜNCELLE()
Dim list()
Range("A3:C65536").ClearContents
ReDim list(Cells(2, 256).End(xlToLeft).Column)
Application.ScreenUpdating = False
Dosya_Yolu = ThisWorkbook.Path
Set S3 = Workbooks("RAPOR.xls").Sheets("Sayfa3")
S3.Select
[A3:J11].ClearContents
Satır = 3
Set Klasör = CreateObject("Scripting.FileSystemObject").GetFolder(Dosya_Yolu).Files
For Each Dosya In Klasör
If InStr(Dosya.Name, ".xls") > 0 Then
If Dosya.Name <> "RAPOR.xls" Then
Workbooks.Open Filename:=Dosya
Sheets("Sayfa3").Select
For i = 1 To UBound(list)
list(i) = list(i) + WorksheetFunction.Sum(Cells(4, i), Cells(65536, i))
Next
End If
End If
Next
ThisWorkbook.Activate
For i = 1 To UBound(list)
Cells(3, i).Value = list(i)
Next
Application.ScreenUpdating = True
MsgBox "Veriler aktarılmıştır.", vbInformation
End Sub '