Board index » delphi » Excel 97 vs Excel 2000

Excel 97 vs Excel 2000

the following peace of code (just one line ;-) ) works fine under NT 4,
Delphi 5 and Excel 97, but not under NT4, Delphi5 and Excel 2000,

I've also tried the updated 2K-Components from the Delphi 5.01 update, it
results in the same error  -->  'OLE-Fehler 800A03EC'

ExcelApplication1.Range['A1','A1'].Value := 10:

What's wrong ?

bye
Stephan Hartmann

 

Re:Excel 97 vs Excel 2000


SoftSupport GmbH, Karlsruhe schrieb:

Quote
> .....
> ExcelApplication1.Range['A1','A1'].Value := 10:

> What's wrong ?

> bye
> Stephan Hartmann

Hi Stephan,

try

ExcelApplication1.Range['A1:A1','A1:A1'].Value := 10;

Regards Reiner

Re:Excel 97 vs Excel 2000


Hi Stephan,

you can try:

ExcelApplication1.Cells[1, 1].Value:= 10;
//            RowCount -^  ^- ColCount

Bye,

Oliver

"SoftSupport GmbH, Karlsruhe" schrieb:

Quote
> the following peace of code (just one line ;-) ) works fine under NT 4,
> Delphi 5 and Excel 97, but not under NT4, Delphi5 and Excel 2000,

> I've also tried the updated 2K-Components from the Delphi 5.01 update, it
> results in the same error  -->  'OLE-Fehler 800A03EC'

> ExcelApplication1.Range['A1','A1'].Value := 10:

> What's wrong ?

> bye
> Stephan Hartmann

Re:Excel 97 vs Excel 2000


Hi Stephan,

you can try:

ExcelApplication1.Cells[1, 1].Value:= 10;
//            RowCount -^  ^- ColCount

Bye,

Oliver

"SoftSupport GmbH, Karlsruhe" schrieb:

Quote
> the following peace of code (just one line ;-) ) works fine under NT 4,
> Delphi 5 and Excel 97, but not under NT4, Delphi5 and Excel 2000,

> I've also tried the updated 2K-Components from the Delphi 5.01 update, it
> results in the same error  -->  'OLE-Fehler 800A03EC'

> ExcelApplication1.Range['A1','A1'].Value := 10:

> What's wrong ?

> bye
> Stephan Hartmann

Re:Excel 97 vs Excel 2000


same result -->  'OLE-Fehler 800A03EC'

Reiner Schlay <LC...@t-online.de> schrieb in im Newsbeitrag:
3974793A.4DDF8...@t-online.de...

Quote
> SoftSupport GmbH, Karlsruhe schrieb:
> > .....
> > ExcelApplication1.Range['A1','A1'].Value := 10:

> > What's wrong ?

> > bye
> > Stephan Hartmann

> Hi Stephan,

> try

> ExcelApplication1.Range['A1:A1','A1:A1'].Value := 10;

> Regards Reiner

Re:Excel 97 vs Excel 2000


Hi stephan,

have a look for
ExcelApplication1.Cells.Items in the VB-Help

i Guess
 ExcelAppLication.Cells.Item[2,2].Value:=10

best regards Reiner

SoftSupport GmbH, Karlsruhe schrieb:

Quote

> same result -->  'OLE-Fehler 800A03EC'

> Reiner Schlay <LC...@t-online.de> schrieb in im Newsbeitrag:
> 3974793A.4DDF8...@t-online.de...
> > SoftSupport GmbH, Karlsruhe schrieb:
> > > .....
> > > ExcelApplication1.Range['A1','A1'].Value := 10:

> > > What's wrong ?

> > > bye
> > > Stephan Hartmann

> > Hi Stephan,

> > try

> > ExcelApplication1.Range['A1:A1','A1:A1'].Value := 10;

> > Regards Reiner

Other Threads