I am learning VBA for use with Excel and have run into the following problem:
For count = 1 To 20
...
Range("Ax".Select
[x = 185*(count-2)+ 1]
...
Range("Ax:Ay".Select
Range("Dz".Select
[x as above, y = 185*(count-1),z = 185*(count-1)+1]
...
How do I set up x, y and z so that the cell references keep incrementing within the loop? Also, beside count what will have to be dimensioned?
Any help appreciated.
Sbev
For count = 1 To 20
...
Range("Ax".Select
[x = 185*(count-2)+ 1]
...
Range("Ax:Ay".Select
Range("Dz".Select
[x as above, y = 185*(count-1),z = 185*(count-1)+1]
...
How do I set up x, y and z so that the cell references keep incrementing within the loop? Also, beside count what will have to be dimensioned?
Any help appreciated.
Sbev