I can adapt this from another post but i need the next line after the to stop
the loop after a empty row
Sub Deilv()
Dim LastRow As Long
Dim row_index As Long
Application.ScreenUpdating = False
LastRow = ActiveSheet.Cells(Rows.Count, "b").End(xlUp).Row
For row_index = LastRow - 1 To 26 Step -1
If Cells(row_index, "B").Value <> _
Cells(row_index + 1, "B").Value Then
Cells(row_index + 1, "B").Resize(26).EntireRow. _
Insert Shift:=xlDown
End If
Next
Application.ScreenUpdating = True
End Sub
>I have'nt since I need to do this a few hundred times when I produce
>remittances
[quoted text clipped - 4 lines]
>>>
>>> Darren
Tom Ogilvy - 20 Mar 2006 18:06 GMT
Sub Deilv()
Dim LastRow As Long
Dim row_index As Long
Application.ScreenUpdating = False
LastRow = ActiveSheet.Cells(Rows.Count, "b").End(xlUp).Row
For row_index = LastRow - 1 To 26 Step -1
if Cells(row_Index,"B").Value = "" then goto GetOut
If Cells(row_index, "B").Value <> _
Cells(row_index + 1, "B").Value Then
Cells(row_index + 1, "B").Resize(26).EntireRow. _
Insert Shift:=xlDown
End If
Next
GetOut:
Application.ScreenUpdating = True
End Sub
You could just do
if Cells(row_Index,"B").Value = "" then exit sub
and application.screenUpdating is turned on by default.

Signature
Regards,
Tom Ogilvy
> I can adapt this from another post but i need the next line after the to stop
> the loop after a empty row
[quoted text clipped - 23 lines]
> >>>
> >>> Darren