in reply to Re^2: Win32::OLE Excel AutoFill not working
in thread Win32::OLE Excel AutoFill not working
I am creating new workbook in example above, but you can open one as you did and access individual worksheets with Sheets property:use Win32::OLE; use Win32::OLE::Const 'Microsoft Excel'; my $excel = Win32::OLE->CreateObject('Excel.Application') or die $!; $excel->{Visible} = 1; my $workbook = $excel->Workbooks->Add; my $worksheet = $workbook->ActiveSheet; $worksheet->Range('A1:B2')->{Value} = [[1,2],[2,4]]; $worksheet->Range('A1:B2')->AutoFill({ Destination => $worksheet->Range('A1:B17'), Type => xlFillDefault, });
my $ws2 = $workbook->Sheets('SheetName'); $ws2->...
Hope this helps
-- Roman
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Win32::OLE Excel AutoFill not working
by DaveTheMan (Initiate) on Dec 24, 2009 at 14:03 UTC | |
by bobr (Monk) on Dec 24, 2009 at 20:03 UTC | |
|
Re^4: Win32::OLE Excel AutoFill not working
by Anonymous Monk on Dec 29, 2009 at 21:12 UTC |