in reply to Inserting copied rows in Excel using Win32::OLE
It is not entirely clear to me what you are trying to achieve. Your use of the Copy method and node title indicates that you want PasteSpecial instead of Insert which just inserts a new empty row before the Range.
Furthermore the value of the Shift property should really be xlShiftDown.
It is not possible from your example to infer how you initialize your Application object and how the Excel constants are imported.
Also I think that the argument of the Rows method should be
instead.$curSheet->Rows(2)->Select;
Anyway HTH somewhat.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Inserting copied rows in Excel using Win32::OLE
by agroman (Initiate) on Aug 29, 2004 at 00:34 UTC | |
by guha (Priest) on Aug 29, 2004 at 10:44 UTC |
In Section
Seekers of Perl Wisdom