![]() |
|
#2
|
|||
|
|||
|
Give this a try
Code:
Sub NamesToRows()
Dim lr As Long
Dim i As Long
Dim arr As Variant
With Sheets("Sheet1")
lr = .Cells(Rows.Count, 1).End(xlUp).Row
For i = lr To 1 Step -1
With Cells(i, 1)
arr = Split(.Value, Chr(10))
If UBound(arr) > 0 Then
.Offset(1, 0).EntireRow.Resize(UBound(arr)).Insert
.Resize(UBound(arr) + 1) = Application.Transpose(arr)
End If
End With
Next i
End With
End Sub
|
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Delete blank rows between the two rows that contain data
|
beginner | Excel Programming | 5 | 12-26-2014 12:29 AM |
Delete All empty Rows - Print - Undo all Rows deleted
|
Bathroth | Word VBA | 1 | 10-01-2014 01:40 PM |
Grouping table rows to prevent individual rows from breaking across pages
|
dennist77 | Word | 1 | 10-29-2013 11:39 PM |
Delete Blank Rows (Cyrillic Text in Spreadsheet )
|
dozd | Excel | 1 | 02-22-2013 03:24 AM |
Count rows and add blank rows accordingly
|
Hoochtheseal | Word VBA | 1 | 01-29-2013 09:23 PM |