jonastjader
New Member
- Joined
- Dec 9, 2013
- Messages
- 12
Hi,
I would like to change the value of the cells A1:24 to the value of integer i, so that A1=1, A2=2 and so on until A24=24.
I want to do this with the help of an integer i and a for loop. This is how far I have got, how do I proceed now?
Sub ForLoop()
Dim i As Integer
For i = 1 To 24
Range("solar!Ai")=i
End Sub
I would like to change the value of the cells A1:24 to the value of integer i, so that A1=1, A2=2 and so on until A24=24.
I want to do this with the help of an integer i and a for loop. This is how far I have got, how do I proceed now?
Sub ForLoop()
Dim i As Integer
For i = 1 To 24
Range("solar!Ai")=i
End Sub