Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Dim SplitText
  2.  
  3. 'iterate through all the rows in the sheet
  4. For i = 1 To i = 2000
  5.  
  6. 'take one cell at a time
  7. cell_value = ThisWorkbook.ActiveSheet.Cells(i, 1).Value
  8.  
  9. 'Split cell contents
  10. wrdArray() = Split(cell_value, vbLf)
  11. For j = 0 To j = wrdArray().Len
  12. Var = wrdArray()(0)
  13. Next j
  14.  
  15. wrdArray().Resize(UBound(SplitText) + 1).Value = Application.Transpose(SplitText)
  16. counter = counter + 1
  17. Next Item
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement