PPT提取文字 要勾选word库

时间: 2024-10-20 / 分类: EXCEL PPT 编程VBA / 浏览次数: 79 views / 0个评论 发表评论

Sub Main()
On Error Resume Next
Dim temp As New Word.Document, tmpShape As Shape, tmpSlide As Slide
For Each tmpSlide In ActivePresentation.Slides
For Each tmpShape In tmpSlide.Shapes
temp.Range().Text = temp.Range() + tmpShape.TextFrame.TextRange.Text
Next tmpShape
Next tmpSlide
temp.Application.Visible = True
End Sub

发表评论

您的昵称 *

您的邮箱 *

您的网站