in reply to Re^3: excel page breaks???
in thread Help inserting page break in Microsoft Excel using OLE
I now receive an error for the last line which reads "Can't call method 'Add' on an undefined value." Did I not read your advice correctly>use warnings; use strict; use OLE; use Win32::OLE::Const 'Microsoft Excel'; my $excel = CreateObject OLE 'Excel.Application'; my $workbook = $excel -> Workbooks -> Add; my $sheet = $workbook -> Worksheets("Sheet1"); $sheet -> Activate(); $sheet -> Range("6:6") -> Activate(); $sheet -> HPPageBreaks -> Add(Before => $sheet -> ActiveCell);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: excel page breaks???
by RazorbladeBidet (Friar) on Mar 01, 2005 at 18:54 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 19:05 UTC |