in reply to win32::ole ActiveWindow

I think the method you want is Select().

However, I'm not sure you're doing this the optimal way. If you call Slide_2->Select(); when only one slide exists, what happens? Does it create the second slide automatically, then select it?
I'd be inclined to do something like
$new_slide = $presentation->Slides->Add( $slideNumber, ppLayoutBla +nk ); $new_slide->Select;

jdporter
The 6th Rule of Perl Club is -- There is no Rule #6.

Replies are listed 'Best First'.
Re: Re: win32::ole ActiveWindow
by tewelch (Initiate) on Dec 16, 2003 at 17:09 UTC
    After reviewing the object model in MSDN I figured out something that works. Each time I start a new slide I use the following to make the new slide Active:
    $ActiveWindow = $PptApp->ActiveWindow; $ActiveWindow->Activate(); $ActiveWindow->View->GotoSlide({Index=>$slideNumber});