in reply to Inserting copied rows in Excel using Win32::OLE
However, I've tried this and it doesn't work. I don't know why, perhaps xlDown is superfluous in the context of a row range.$curSheet->Rows("2:2")->Insert({Shift => 'xlDown'});
As a workaround, if you use the Insert() method without parameters it will give the desired effect of shifting the rows down:
$curSheet->Rows("2:2")->Insert();
$curSheet->Rows("2:2")->Insert({Shift => xlDown});
--
John.
|
|---|