I want replace the x input from the user to the Cell Address value that is stored in N2
. For example Cells(2, i+10)
is J2
Cell, in the first loop in cell A2
it will be =J2^2
if the user wrote x^2
and the next loop would be B2=K^3
if the user wrote x^3
and so on.
numero_formulas = InputBox("¿Cuántas fórmulas vas a ingresar?")
Sheets("ResultadosContinua").range("I6") = numero_formulas
For i = 1 To numero_formulas
N2 = Cells(2, i + 10)
formula_user = InputBox("Escribe la fórmula:" & i & "")
Cells(2, i).Select
Sheets("ResultadosContinua").Select
ActiveCell.Formula = "=" & Replace(formula_user, "x", " & N2 & ")