Board index » delphi » Excel VBA code that does not work under OLE automation
Tom Tatham
![]() Delphi Developer |
Sat, 17 Mar 2001 03:00:00 GMT
Excel VBA code that does not work under OLE automation
The following VBA code executes properly as a macro (fills 10 rows with
1,2..10): Public Sub mysub() Yet what I would think is the corresponding Delphi code using variants procedure TForm1.Button1Click(Sender: TObject); XL.Activesheet.range(xl.activesheet.cells(1,1),xl.activesheet.cells(10,10)) Why doesn't the Delphi code work???? |