I am writing a for loop in a macro to loop as shown

For i = 1 To #
Perform Task
Next i
End

In the worksheet i am using this macro i want to specify the number of iterations for the loop to perform by placing an integer value in a cell, i then want the value i put in the cell to replace the # in the macro, what do i put in the code instead of the # to do this??

Thankyou in advance