try this
VB Code:
  1. Sub lineup()
  2. i = 3
  3. Do Until i = ActiveSheet.UsedRange.Rows.Count
  4.     If Not IsEmpty(Cells(i, 1)) And Not IsEmpty(Cells(i, 9)) Then
  5.         If Cells(i, 1) > Cells(i, 9) Then
  6.             Range(Cells(i, 1), Cells(i, 4)).Insert xlDown
  7.            
  8.         ElseIf Cells(i, 1) < Cells(i, 9) Then
  9.             Range(Cells(i, 9), Cells(i, 13)).Insert xlDown
  10.         ElseIf Cells(i, 1) = Cells(i, 9) Then
  11.             If Cells(i, 2) > Cells(i, 10) Then
  12.                 Range(Cells(i, 1), Cells(i, 4)).Insert xlDown
  13.             ElseIf Cells(i, 2) < Cells(i, 10) Then
  14.                 Range(Cells(i, 9), Cells(i, 13)).Insert xlDown
  15.             End If
  16.            
  17.         End If
  18.     End If
  19.         i = i + 1
  20.        
  21. Loop
  22. End Sub