我有一個包含大約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