View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Norman Jones Norman Jones is offline
external usenet poster
 
Posts: 5,302
Default Loop every 26 rows and if..

Hi Robert,

Try inserting:

End If

after:

Cells(irow, "B").Value = "A/C closed"



---
Regards,
Norman


"Ardus Petus" wrote in message
...
Sub Test()
Dim irow As Long
For irow = 2 To 4968 Step 26
If Cells(irow, "R").Value = 0 Then
Cells(irow, "B").Value = "A/C closed"
Next irow
End Sub


HTH
--
AP