- Katılım
- 26 Nisan 2015
- Mesajlar
- 189
- Excel Vers. ve Dili
- Microsoft® Excel® Microsoft 365 için MSO 64 bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Public Sub Aktar()
Dim Kol As Integer
Dim i As Long
Dim j As Long
Dim arr As Variant
j = Sayfa1.Cells(Rows.Count, "A").End(xlUp).Row
Sayfa2.Cells.ClearContents
For Kol = 1 To Sayfa1.Cells(1, "A").End(xlToRight).Column
i = Sayfa2.Cells(Rows.Count, "A").End(3).Row + 1
arr = Sayfa1.Range(Sayfa1.Cells(1, Kol), Sayfa1.Cells(j, Kol)).Value
Sayfa2.Range("A" & i).Resize(1, UBound(arr, 1)) = Application.WorksheetFunction.Transpose(arr)
Next Kol
Sayfa2.Cells.EntireColumn.AutoFit
MsgBox "Aktarma Tamamdır...."
End Sub
Sayfa2.Cells.ClearContents
For Kol = 1 To Sayfa1.Cells(1, "A").End(xlToRight).Column
For Kol = 2 To Sayfa1.Cells(1, "A").End(xlToRight).Column