ppt复制文本框文字到word的方法 - 光辉飞翔

时间:2024-02-25 08:48:25

  打开ppt按Alt+F11,插入--模块,  选中“工具”--“引用”--MicroSoft Word 。。

复制代码:

Sub Main()
On Error Resume Next
Dim temp As New Word.Document, tmpShap 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

按F5执行,这时会自动弹出word。

 

posted on 2019-02-12 12:48  光辉飞翔  阅读(549)  评论(0编辑  收藏  举报