BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Delphi, Excel

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Roman
Guest





PostPosted: Wed Jul 19, 2006 8:12 am    Post subject: Delphi, Excel Reply with quote



Hi,

I have a Delphi (6) application that works with an Excel sheet.
When I do:

xls.ActiveSheet.Cells[1,1].NumberFormat := '###.##0';
xls.ActiveSheet.Cells[1,1].Formula := '=IF(G6>I6;G6-I6;"")';
or
xls.ActiveSheet.Cells[1,1].NumberFormat := '###.##0';
xls.ActiveSheet.Cells[1,1].Value := '=IF(G6>I6;G6-I6;"")';

I get an "OLE Error 800A03EC" exception. Other funtions like "=SUM(A1:A10)" work fine.
Can anybody help me?

Best regards,
Roman
Back to top
Roman
Guest





PostPosted: Thu Jul 20, 2006 8:12 am    Post subject: Re: Delphi, Excel Reply with quote



"Oliver Townshend" <oliveratzipdotcomdotau> wrote:
Quote:
xls.ActiveSheet.Cells[1,1].NumberFormat := '###.##0';
xls.ActiveSheet.Cells[1,1].Formula := '=IF(G6>I6;G6-I6;"")';

use commas not semicolons in your formula.

Oliver Townshend



Thank You very much for your answer an have a nice day

Roman
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.