首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >查看PPT注释

查看PPT注释
EN

Stack Overflow用户
提问于 2021-07-05 20:52:08
回答 1查看 20关注 0票数 0

我有一个带有500+幻灯片的PPT。它有一些我想要获取/摘录的幻灯片上的评论。滚动全部500张幻灯片是很困难的。有没有办法,我可以一次得到所有的评论?

提前感谢您的帮助!!

EN

回答 1

Stack Overflow用户

发布于 2021-07-05 23:00:42

您的标记提到了python,但这感觉像是一次性的问题,既然您已经有了PowerPoint,那么您可以使用VBA来解决它。如下所示:

代码语言:javascript
复制
Sub ListComments()

Dim oSl As Slide
Dim oCom As Comment
Dim sTemp As String
Dim x As Long

For Each oSl In ActivePresentation.Slides
    For Each oCom In oSl.Comments
        sTemp = sTemp & oCom.Text & vbCrLf
        For x = 1 To oCom.Replies.Count
            sTemp = sTemp & vbTab & oCom.Replies(x).Text & vbCrLf
        Next
    Next
Next

' This will "print" the result to the immediate window
' Press Ctrl+G in the VBA editor if it's not open
' If there are more comments than the window will allow,
'   you'll need to write the contents of sTemp to file or
'   do something else with it.
Debug.Print sTemp

End Sub
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68256482

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档