nvorango = "I" + ALLTRIM(STR(lnFila)) elrango = "I5:I" + ALLTRIM(STR(mifinal)) WITH .RANGE(nvorango) .formula = "=SUBTOTALES(9," + elrango + ")" ENDWITHThis code returns something like this in the formula bar:
=SUBTOTALES(9,I5:I3765)
It seems good but I get an #¿NAME? error on the cell. If I edit the cell WITHOUT any change, the result apears normal. It's the same thing with other kind of formulas.