I've used the below (above) script which and adjusted it slighly to loo
at the second column. This works if the first (A) is poplated, howeve
if A is empty it stops working... any ideas?
PS, how do I make it insert 2 or more rows?
Sub InsertRow_At_Change()
Dim i As Long
With Application
.Calculation = xlManual
.ScreenUpdating = True
End With
For i = Cells(Rows.Count, 1).End(xlUp).Row To 2 Step -1
If Cells(i - 1, 2) <> Cells(i, 2) Then _
Cells(i, 1).Resize(1, 1).EntireRow.insert
Next i
With Application
.Calculation = xlAutomatic
.ScreenUpdating = True
End With
End Su
--
Odysseu
-----------------------------------------------------------------------
Odysseus's Profile:
http://www.excelforum.com/member.php...fo&userid=1456
View this thread:
http://www.excelforum.com/showthread.php?threadid=38841