I want to make a for-loop repeat itself a given number of times, specified by inputting a value to a cell. Here is the code I'm currently using:
Dim i as Integer
Dim j as Integer
j = Range("Q1").Value
For i = 1 to j
(code)
Next i
This doesn't work, but hopefully you can see what I'm trying to do?
Thanks for any suggestions!
-Ed.
Dim i as Integer
Dim j as Integer
j = Range("Q1").Value
For i = 1 to j
(code)
Next i
This doesn't work, but hopefully you can see what I'm trying to do?
Thanks for any suggestions!
-Ed.