Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error with formula in Excel
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01223236
Message ID:
01223240
Views:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Hi Guys!
>
>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.
>
>Thanks in advance!

Check also Re: Formulas in Excel Thread #1203274 Message #1203319
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform