in reply to Help inserting page break in Microsoft Excel using OLE

jobs_ron

I have no idea what I am talking about, Visual Basic is not permitted here in my shop, even Excel is only barely tolerated!

ActiveState Perl Dev Kit 6.0 has a little thing call 'VB Script convertor' which is said to turn VB into Perl. Well, I input your line of VB code and here is what it came back with:

$ActiveWindow->SelectedSheets->HPageBreaks->Add({Before => $ActiveCell +});
Sincerely jdtoronto or "The Piano Player"

Replies are listed 'Best First'.
Re^2: Help inserting page break in Microsoft Excel using OLE
by jobs_ron (Acolyte) on Mar 01, 2005 at 19:23 UTC
    What would $ActiveWindow be defined as?
        Thank you. I did try this, although I changed the code from this:
        $sheet -> HPageBreaks -> Add({Before => $ActiveCell});
        to this:
        $sheet -> HPageBreaks -> Add({Before => $sheet -> ActiveCell});
        Still, nothing happens.