开发者

How can I find the current edit slide in PowerPoint?

开发者 https://www.devze.com 2022-12-29 15:23 出处:网络
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.

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 MSD开发者_运维知识库N 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.


Have you looked at

ActiveWindow.View.Slide.SlideIndex

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

0

精彩评论

暂无评论...
验证码 换一张
取 消