jobs_ron has asked for the wisdom of the Perl Monks concerning the following question:
The problem is the last line. I receieve the error message "Can't call method 'HPPageBreaks' on an undefined value." Now, the VB code to do this is: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();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: excel page breaks???
by Joost (Canon) on Mar 01, 2005 at 17:11 UTC | |
|
Re: excel page breaks???
by talexb (Chancellor) on Mar 01, 2005 at 17:13 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 17:40 UTC | |
by ikegami (Patriarch) on Mar 01, 2005 at 18:42 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 18:52 UTC | |
by RazorbladeBidet (Friar) on Mar 01, 2005 at 18:54 UTC | |
| |
by holli (Abbot) on Mar 01, 2005 at 18:28 UTC | |
by ikegami (Patriarch) on Mar 01, 2005 at 18:44 UTC | |
by talexb (Chancellor) on Mar 01, 2005 at 18:14 UTC | |
|
Re: Help inserting page break in Microsoft Excel using OLE
by jdtoronto (Prior) on Mar 01, 2005 at 19:19 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 19:23 UTC | |
by Joost (Canon) on Mar 01, 2005 at 19:29 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 19:34 UTC | |
by jobs_ron (Acolyte) on Mar 01, 2005 at 23:55 UTC |