ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Spanish/English Formulas (https://www.excelbanter.com/excel-programming/325705-spanish-english-formulas.html)

econcult

Spanish/English Formulas
 
I'm writing a code that inputs a formula in a cell.

How can I get it so the formula is readable either in English and Spanish
versions of Excel?. i.e. '=SUM(A1,B1)' and '=SUMAR(A1;B1)', please note the
different separations ',' and ';'.

Thanks!

Ron de Bruin

Spanish/English Formulas
 
Hi econcult

If you insert it with VBA you can use the English formulas and seperator

ActiveCell.Formula = "=SUM(A1,B1)"

On a Spanish machine it will be =SUMAR(A1;B1) in the cell

Only you can't use the ATP functions this way

--
Regards Ron de Bruin
http://www.rondebruin.nl



"econcult" wrote in message ...
I'm writing a code that inputs a formula in a cell.

How can I get it so the formula is readable either in English and Spanish
versions of Excel?. i.e. '=SUM(A1,B1)' and '=SUMAR(A1;B1)', please note the
different separations ',' and ';'.

Thanks!





All times are GMT +1. The time now is 12:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com