Formulas in exel

Formulas in exel

Postby Armando » Mon Jul 28, 2008 12:37 am

Dear friends:

Have a nice day.

I am looking for a small sample to record formulas in a excel sheet using TOLE.

somebody can help me ?

Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Re: Formulas in exel

Postby Enrico Maria Giordano » Mon Jul 28, 2008 7:37 am

Code: Select all  Expand view  RUN
oSheet:Cells( nRow, nCol ):Value = "=your formula here"


Note the equal sign.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Armando » Mon Jul 28, 2008 1:35 pm

Enrico:

Thanks so much, problem solved with your help (as usual) :wink:

Now another question !

Is there a way to know the version of excel that is being used ?

I mean, =SUM(), (English language) is not equal to =SUMA() (Spanish language) how to know when to use one and when to use an other one ?.

Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Postby Enrico Maria Giordano » Mon Jul 28, 2008 4:20 pm

First try if the English version works in Spanish version too, at least using OLE.

EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Armando » Mon Jul 28, 2008 4:54 pm

Enrico:

Thanks for your replay.

In Spanish versión does not work a formula in English language

=SUM() <> =SUMA()

Regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México

Postby Enrico Maria Giordano » Mon Jul 28, 2008 8:04 pm

Code: Select all  Expand view  RUN
#define msoLanguageIDInstall 1
#define msoLanguageIDUI      2
#define msoLanguageIDHelp    3


FUNCTION MAIN()

    LOCAL oExcel := CREATEOBJECT( "Excel.Application" )

    LOCAL oApp := oExcel:CommandBars( "Standard" ):Application

    ? oApp:LanguageSettings:LanguageID( msoLanguageIDInstall )
    ? oApp:LanguageSettings:LanguageID( msoLanguageIDUI )
    ? oApp:LanguageSettings:LanguageID( msoLanguageIDHelp )

    ? oExcel:LanguageSettings:LanguageID( msoLanguageIDInstall )

    INKEY( 0 )

    RETURN NIL


EMG
User avatar
Enrico Maria Giordano
 
Posts: 8718
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia

Postby Armando » Mon Jul 28, 2008 9:14 pm

Thank you Mr. Enrico:

I'll try

Best regards
SOI, s.a. de c.v.
estbucarm@gmail.com
http://www.soisa.mex.tl/
http://sqlcmd.blogspot.com/
Tel. (722) 174 44 45
Carpe diem quam minimum credula postero
User avatar
Armando
 
Posts: 3229
Joined: Fri Oct 07, 2005 8:20 pm
Location: Toluca, México


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 64 guests