Dear all,
I would like to insert the following function in my VBA, but I have no idea if it is even possible, since I just started with VBA.
I would like to prompt a message box (or similar) so that the user could insert the "Initial number", the "final number" and the "step". Then, the VBA code will calculate all the numbers in the series and use each one individually to calculate something else. This will be cell B2 * the number.
Example:
In active worksheet, range A1:L3 is populated. Important cells are B2, D2.
Then the window will pop up and the user will insert:
-"Initial number" = 120
-"Final number" = 150
- Step = 5
So the number of "numbers" will be 7 (120, 125, 130, 135, 140, 145, 150).
Error message if number of "number" is >13 (calculation restrictions).
The VBA code will do a loop from i=1 to number of "numbers"
doing B2*i and D2*i
Any help will be much appreciated!!
Thank you in advance!
E
I would like to insert the following function in my VBA, but I have no idea if it is even possible, since I just started with VBA.
I would like to prompt a message box (or similar) so that the user could insert the "Initial number", the "final number" and the "step". Then, the VBA code will calculate all the numbers in the series and use each one individually to calculate something else. This will be cell B2 * the number.
Example:
In active worksheet, range A1:L3 is populated. Important cells are B2, D2.
Then the window will pop up and the user will insert:
-"Initial number" = 120
-"Final number" = 150
- Step = 5
So the number of "numbers" will be 7 (120, 125, 130, 135, 140, 145, 150).
Error message if number of "number" is >13 (calculation restrictions).
The VBA code will do a loop from i=1 to number of "numbers"
doing B2*i and D2*i
Any help will be much appreciated!!
Thank you in advance!
E