powerpoint - 查看 PPT 评论
问题描述
我有一个包含 500 多张幻灯片的 PPT。它对我想获取/提取的几张幻灯片有评论。滚动所有 500 张幻灯片很困难。有没有办法,我可以一次获得所有评论?
预先感谢您的帮助!!
解决方案
你的标签提到了 python,但这感觉像是一个一次性的问题,因为你已经有了 PowerPoint,你可以使用 VBA 来解决它。像这样:
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
推荐阅读
- spring-boot - 为 ForkJoinPool.commonPool() 打开跟踪工具
- r - 在 ggplotly 中可视化输出:从表格到绘图
- c++ - 获取线性回归 C++ 的 -nan(ind) 错误
- powershell - Pester v5.1:应该 - 抛出包含方括号的消息失败
- python - 读取 csv 文件中的最后一行错误:迭代器应返回字符串,而不是字节(您是否以文本模式打开文件?)
- c# - 读取 .pptx 表的问题
- mongodb - 无法连接到 gitlab 中的 mongo docker
- flutter - 如何在 Appbar 使用安全区?
- python - Python NLTK:如何找到用户输入和 Excel 数据之间的相似性
- asp.net-core - nginx proxy_pass(到 asp.net core blazor)不适用于 css