in reply to How to control (in a generic way) population of Excel file from another Excel file
where $lastrow is gotten from the original sheet. There may be some other way to copy and paste an entire column using OLE commands, but I'm afraid that would take getting into the weeds of the Excel API. This is pretty straightforward, and you could easily implement it as a subroutine.for my $row (0..$lastrow) { for my $i (0..$#swap) { $Sheet2->Range($swap[$i][1].$row)->{'Value'} = $Sheet1->Range($swa +p[$i][0].$row)->{'Value'}; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to control (in a generic way) population of Excel file from another Excel file
by woland99 (Beadle) on Nov 10, 2015 at 19:49 UTC | |
by cormanaz (Deacon) on Nov 11, 2015 at 14:20 UTC | |
by woland99 (Beadle) on Nov 12, 2015 at 00:25 UTC |