Advertisement
YasserKhalil2019

T4524_Convert One Column To Table Using Step In Loops

Jan 12th, 2020
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. https://excel-egy.com/forum/t4524
  2. ---------------------------------
  3.  
  4. Sub Convert_One_Column_To_Table_Using_Step_In_Loops()
  5. Dim a, r As Long, i As Long
  6.  
  7. Application.ScreenUpdating = False
  8. r = 5
  9.  
  10. For i = 4 To Cells(Rows.Count, "C").End(xlUp).Row Step 8
  11. a = Range("C" & i).Resize(7).Value
  12. Cells(r, "O").Resize(, UBound(a)).Value = Application.Transpose(a)
  13. r = r + 1
  14. Next i
  15. Application.ScreenUpdating = True
  16.  
  17. MsgBox "Done...", 64
  18. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement