Hi, I'm using D7. I have an ExcelApplication, ExcelWorkBook and ExcelWorkSheet on my Form.
I'm using this code to Lauch Excel:
var
NewTemplate,ItemIndex: OleVariant;
begin
ExcelApplication1.Connect;
NewTemplate:=true;
ItemIndex:=1;
ExcelApplication1.Visible[ItemIndex]:=true;
ExcelApplication1.Workbooks.Add(NewTemplate,ItemIndex);
ExcelWorkbook1.ConnectTo(ExcelApplication1.Workbooks[ItemIndex]);
ExcelWorkSheet1.ConnecTo(ExcelWorkbook1?);
ExcelWorkSheet1.[1,1]:='Hello' ???
How can I connect ExcelWorkSheet1 to ExcelWorkBook1 ?
After that, how do I refer to a specific Cell of ExcelWorkSheet1?
Thanks
I'm using this code to Lauch Excel:
var
NewTemplate,ItemIndex: OleVariant;
begin
ExcelApplication1.Connect;
NewTemplate:=true;
ItemIndex:=1;
ExcelApplication1.Visible[ItemIndex]:=true;
ExcelApplication1.Workbooks.Add(NewTemplate,ItemIndex);
ExcelWorkbook1.ConnectTo(ExcelApplication1.Workbooks[ItemIndex]);
ExcelWorkSheet1.ConnecTo(ExcelWorkbook1?);
ExcelWorkSheet1.[1,1]:='Hello' ???
How can I connect ExcelWorkSheet1 to ExcelWorkBook1 ?
After that, how do I refer to a specific Cell of ExcelWorkSheet1?
Thanks