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 

Excel problems

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





PostPosted: Thu Dec 23, 2004 12:02 am    Post subject: Excel problems Reply with quote



Hi,

I'm using Delphi 7 and WinXP Pro with Office 2002.

I've been trying to export the data from a stringgrid to excel using
examples from the web.

The problem arises when I try this line:
Worksheet.Range['A1',Worksheet.Cells.Item[R,C]].Value := TabGrid;

I get the error : '[' expected but ':=' found

Any help would be greatly appreciated,
nisbus

P.S.
The example I'm using can be found here:
http://www.undu.com/Articles/010316c.html


Back to top
Deborah Pate (TeamB)
Guest





PostPosted: Thu Dec 23, 2004 9:56 am    Post subject: Re: Excel problems Reply with quote



< I get the error : '[' expected but ':=' found
Quote:


With OfficeXP (IIRC) it becamse necessary to supply a
locale identifier (lcid) to the Value property:
SomeRange.Value[lcid] := 'How irritating';
Alternatively you can often use the Value2 property, which
doesn't need an lcid:
SomeRange.Value2 := 'These things are sent to try us';

--
Deborah Pate (TeamB) http://delphi-jedi.org

TeamB don't see posts sent via Google or ISPs
Use the real Borland server: newsgroups.borland.com
http://www.borland.com/newsgroups/genl_faqs.html



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.