 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
nisbus Guest
|
Posted: Thu Dec 23, 2004 12:02 am Post subject: Excel problems |
|
|
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
|
Posted: Thu Dec 23, 2004 9:56 am Post subject: Re: Excel problems |
|
|
<
I get the error : '[' expected but ':=' found
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 |
|
 |
|
|
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
|
|