Hi,
I am trying to go row by row incrementally for each loan in Excel. Here's what I have so far:
For i = 1 To 100
Range("X1").Select
ActiveCell.FormulaR1C1 = "=+R[1]C[-10]"
Range("X2").Select
ActiveCell.FormulaR1C1 = "=+R[2]C[-9]"
Next i
End Sub
How can I incrementally change by 1 the cell number from "X1" to "X2", "X2" to "X3",etc. for Range("X1").Select after each For . . Loop of commands is run? I tried the obvious Range("X1" + 1)which resulted in a Runtime 1004 error.
Thanks for your time.
I am trying to go row by row incrementally for each loan in Excel. Here's what I have so far:
For i = 1 To 100
Range("X1").Select
ActiveCell.FormulaR1C1 = "=+R[1]C[-10]"
Range("X2").Select
ActiveCell.FormulaR1C1 = "=+R[2]C[-9]"
Next i
End Sub
How can I incrementally change by 1 the cell number from "X1" to "X2", "X2" to "X3",etc. for Range("X1").Select after each For . . Loop of commands is run? I tried the obvious Range("X1" + 1)which resulted in a Runtime 1004 error.
Thanks for your time.