Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error with formula in Excel
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01223236
Message ID:
01223238
Vues:
22
This message has been marked as the solution to the initial question of the thread.
The name of the functon is SUBTOTAL()
		.formula = "=SUBTOTAL(9," + elrango + ")"
>
>I´m making some automation with Excel. At the end, I´m making some formulas, something like this:
>
>
>	nvorango = "I" + ALLTRIM(STR(lnFila))
>	elrango = "I5:I" + ALLTRIM(STR(mifinal))
>	WITH .RANGE(nvorango)
>		.formula = "=SUBTOTALES(9," + elrango + ")"
>	ENDWITH
>
>
>This 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.
>
>Does anybody know how can I avoid this behavior? BTW, I´m using MS Excel 2003 (Spanish), but it's the same trouble in other versions.
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform