Copy Sheet/Data/Cell from one file to another?
Posted: Tue Nov 05, 2013 8:22 pm
Hi,
how do i copy cells or rows from one Excel file to another, including formulas und formattings?
Excample:
var
XLS1, XLS2 : TXLSReadWriteII5;
begin
XLS1.LoadFromFile('file1.xlsx');
XLS2.LoadFromFile('file2.xlsx');
for XLS1[0].FirstRow to XLS1[0].LastRow do
begin
// how to copy the rows to XLS2[0] ?
end;
end;
Thanks.
how do i copy cells or rows from one Excel file to another, including formulas und formattings?
Excample:
var
XLS1, XLS2 : TXLSReadWriteII5;
begin
XLS1.LoadFromFile('file1.xlsx');
XLS2.LoadFromFile('file2.xlsx');
for XLS1[0].FirstRow to XLS1[0].LastRow do
begin
// how to copy the rows to XLS2[0] ?
end;
end;
Thanks.