in reply to Appending data into an Excel Sheet
Open the Excel Macro editor and open help, that gives you all the methods. You will go through hell with all those parameters, undebuggable objects and all those esoteric VBA paranormalia. One last hint, use something like this to find the last used row to append things:my $Excel = Win32::OLE->GetActiveObject('Excel.Application'); unless ($Excel) { $Excel = Win32::OLE->new('Excel.Application'); } my $xls = $Excel->Workbooks->Open(...); my $sheet = $xls->Worksheets(1);
my $lastrow = $sheet->UsedRange->Find( { What => "*", SearchDirection => xlPrevious, SearchOrder => xlByRows } )->{Row};
And it came to pass that in time the Great God Om spake unto Brutha, the Chosen One: "Psst!"
(Terry Pratchett, Small Gods)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Appending data into an Excel Sheet
by psr473 (Novice) on Feb 28, 2008 at 13:39 UTC | |
|
Re^2: Appending data into an Excel Sheet
by psr473 (Novice) on Apr 15, 2008 at 08:10 UTC | |
by Anonymous Monk on Jun 24, 2008 at 13:49 UTC | |
by marto (Cardinal) on Jun 24, 2008 at 14:12 UTC |