With Sheets("Sheet1")
.Columns("B:B").Insert shift:=xlToRight
For Each c In .Range("A1:A" & .Range("A" & Rows.Count).End(xlUp).Row)
If c.IndentLevel > 0 Then
c.Offset(, 1) = c.Value
End If
Next
End With
Try this, you need to change the sheet name to suit:
Code:With Sheets("Sheet1") .Columns("B:B").Insert shift:=xlToRight For Each c In .Range("A1:A" & .Range("A" & Rows.Count).End(xlUp).Row) If c.IndentLevel > 0 Then c.Offset(, 1) = c.Value End If Next End With
With Sheets("Sheet1")
.Columns("B:B").Insert shift:=xlToRight
For Each c In .Range("A1:A" & .Range("A" & Rows.Count).End(xlUp).Row)
If c.IndentLevel > 0 Then
c.Offset(, 1) = c.Value
c.ClearContents
End If
Next
End With