How can I find the current edit slide in PowerPoint?
Posted
by mj2008
on Stack Overflow
See other posts from Stack Overflow
or by mj2008
Published on 2010-05-10T15:38:44Z
Indexed on
2010/05/10
15:44 UTC
Read the original article
Hit count: 169
powerpoint
|delphi
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.
© Stack Overflow or respective owner