variable cell index

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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?
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top