View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Ken Johnson Ken Johnson is offline
external usenet poster
 
Posts: 1,073
Default Autoadding new row

Hi nordscan,
Try this on a backup copy of your worksheet...

Public Sub Insert_Row_If_C_no()
Application.ScreenUpdating = False
Dim iLastRow As Long
iLastRow = ActiveSheet.Range("C" & Range("C:C"). _
Rows.Count).End(xlUp).Row
Do While iLastRow 1
If Cells(iLastRow, 3).Value = "no" Then
Cells(iLastRow, 3).EntireRow.Insert
End If
iLastRow = iLastRow - 1
Loop
End Sub

Ken Johnson