View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Halim Halim is offline
external usenet poster
 
Posts: 182
Default variable cell index

as your query i've compiled this one:
Sub Looping()
Dim n As Long
For n = 1 To 20
Cells(n + 4, "E") = Cells(n + 4, "E").Offset(-1, 0) + 1
Next n
End Sub
--
Regards,

Halim



"jila" wrote:

how can i use variable cell index and "for"loop in Excell.
for example: are E4=E3+1
or A1=Fn;n=1 to 20?