Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I find the current edit slide in PowerPoint?

I'm writing an add-in for PowerPoint, and want to get the text from the current slide in the editing window. The following works, but only when the slide is selected in the slide selector pane.

xSelection := PowerPointApp.ActiveWindow.Selection;
if xSelection.Type = ppSelectionSlides then
begin
  xSlide := xSelection.SlideRange.Item(1);
end;

I've been chasing my tail at MSDN trying to work out what the correct way to find out the current slide is. The DocumentWindow doesn't seem to have a current slide.

like image 698
mj2008 Avatar asked Jan 24 '26 02:01

mj2008


1 Answers

Have you looked at

ActiveWindow.View.Slide.SlideIndex

This link is useful http://support.microsoft.com/kb/163194

like image 199
Sharjeel Aziz Avatar answered Jan 25 '26 18:01

Sharjeel Aziz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!