Thank you for this and please excuse my lack of understanding.
If I use the dimension statement and then want to perform a calculation to get the variable i, can I not just refer to the range where the data to be tested resides? For instance, the loop needs to run a number of times defined by the integer value of 1000000 divided by the maximum number in the range 'seacalc'.
I tried:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]For i = 1 To Int(1000000 / Application.Max(seacalc))
but that did not work.
[/FONT]