ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   variable cell index (https://www.excelbanter.com/excel-programming/396953-variable-cell-index.html)

jila

variable cell index
 
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?

Halim

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?



All times are GMT +1. The time now is 05:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com