tewelch has asked for the wisdom of the Perl Monks concerning the following question:
This works great until I start a second slide. It seems that PowerPoint needs to be told what the active slide is in order to get the correct value returned from Height. My question is how do I tell PowerPoint to activeate the latest created slide. When the presentation is being built I can watch the slides being created in PowerPoint but even as additional slides are being added, PowerPoint continues to display slide 1 until I do a page down or make a selection from the slide sorter. I recorded a macro to see what happens when a different slide is selected but the macro was blank. I tried some other things like$TextBox = ${'Slide_'.$slideNumber}->Shapes->AddTextbox({Orientati +on=>1,Left=>80,Top=>$bulletYPos,Width=>600,Height=>20,}); $TextBox->TextFrame->TextRange->{Text} = 'blah blah blah'; $TextBoxHeight = $TextBox->Height;
and${'Slide_'.$slideNumber}->ActivateWindow();
but neither worked. Thanks.${'Slide_'.$slideNumber}->ActiveWindow();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: win32::ole ActiveWindow
by jdporter (Paladin) on Dec 03, 2003 at 18:47 UTC | |
by tewelch (Initiate) on Dec 16, 2003 at 17:09 UTC | |
|
Re: win32::ole ActiveWindow
by Zero_Flop (Pilgrim) on Dec 03, 2003 at 18:14 UTC |