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);
In reply to Re^4: excel page breaks???
by jobs_ron
in thread Help inserting page break in Microsoft Excel using OLE
by jobs_ron
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |