View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
iashorty iashorty is offline
external usenet poster
 
Posts: 41
Default Inserting Formula moving down each row

Put formula into col. S as long as same row in col J has something in it.

Range("S2").Select
x = ActiveCell.Row
Do While Cells(x, 10).Value < ""
ActiveCell.FormulaR1C1 = _
"=IF(RC[-9]=""EVT2"",1,IF(RC[-9]=""EVT3"",2,9))"
x = x + 1
Loop

End Sub

Why doesn't this move to the next row?