我有一个包含大约50张幻灯片的PowerPoint。每张幻灯片可能有一个或多个评论由reviwer提供(使用insert-> comment菜单完成)。使用VBA从PowerPoint演示文稿提取评论
我试图让编程导出到使用这个VBA代码的文本文件中的注释:
Sub ConvertComments()
''# Converts new-style comments to old
Dim oSl As Slide
Dim oSlides As Slides
Dim oCom As Comment
Set oSlides = ActivePresentation.Slides
For Each oSl In oSlides
For Each oCom In oSl.Comments
''# write the text to file : (oCom.Text)
WriteToATextFile oCom.Author, <what needs to come here>, oCom.Text
Next oCom
Next oSl
End Sub
在上面的代码,我需要提供意见上下文中还写入一个文本文件(幻灯片中的哪一行被选中并加以评论)
问:是否有任何属性可用于获取此信息?
你是什么意思与“评论上下文”?问题也是如何写入VBA中的文本文件,还是仅仅关于“评论上下文”。我可以为您提供如何编写文本文件的代码,如果这有帮助,也许如果您澄清“评论上下文”,那么这也将与它。 – hol 2010-07-27 11:16:51
我的评论上下文如下: 假设ppt 中有一行文字,审核人选中它并点击插入 - >评论菜单 我需要获取被选中并在 – balalakshmi 2010-07-27 11:28:07