- Katılım
- 8 Mart 2019
- Mesajlar
- 105
- Excel Vers. ve Dili
- 2016 64 Bit
DOSYA İndirmek/Yüklemek için ÜCRETLİ ALTIN ÜYELİK Gereklidir!
Altın Üyelik Hakkında Bilgi
Option Explicit
Sub Yana_Aktar()
Dim X As Long, Sutun As Integer, Y As Long
Range("E2:XFD" & Rows.Count).Clear
For X = 3 To Cells(Rows.Count, 1).End(3).Row Step 3
Sutun = 5
For Y = X To X + 2
If Cells(Y, "A") <> "" Then
Cells(Rows.Count, Sutun).End(3)(2, 1).Resize(, 4).Value = Cells(Y, "A").Resize(, 4).Value
Cells(Y, "A").Resize(, 4).ClearContents
Sutun = Sutun + 4
End If
Next
X = X + 1
Next
Range("A2:D" & Rows.Count).SpecialCells(xlCellTypeBlanks).Delete xlUp
Columns.AutoFit
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub
Option Explicit
Sub Yana_Aktar()
Dim X As Long, Sutun As Integer, Y As Long
Range("E2:XFD" & Rows.Count).Clear
For X = 2 To Cells(Rows.Count, 1).End(3).Row Step 4
Sutun = 5
For Y = X To X + 3
If Cells(Y, "A") <> "" Then
Cells(Rows.Count, Sutun).End(3)(2, 1).Resize(, 4).Value = Cells(Y, "A").Resize(, 4).Value
Sutun = Sutun + 4
End If
Next
Next
Columns.AutoFit
MsgBox "İşleminiz tamamlanmıştır.", vbInformation
End Sub