【发布时间】:2015-11-19 04:24:28
【问题描述】:
我有几个 PowerPoints,笔记中有大量文字。我需要搜索注释文本并删除所有以“A”开头的段落。
这是我尝试过的 - 但出现类型不匹配错误
Dim curSlide As Slide
Dim curNotes As Shape
Dim x As Long
For Each curSlide In ActivePresentation.Slides
Set curNotes = curSlide.NotesPage.Shapes(2).TextFrame.TextRange
With curNotes.TextFrame.TextRange
For x = 1 To Len(curNotes.TextFrame.TextRange)
If Mid(curNotes.TextFrame.TextRange, x, 2) = "A." Then
curNotes.TextFrame.TextRange.Paragraphs = ""
End If
Next x
End With
Next curSlide
End Sub
感谢您的帮助!!
【问题讨论】:
标签: vba powerpoint