生物谷博客正在载入数据,请稍等...
 
     
 
Office宏 PowerPoint提取文字到Word
[ 2007-11-21 15:19:00 | By: 林峰(农药) ]
 

以下为宏代码:

Attribute VB_Name = "模块1"
Sub toWord()
On Error Resume Next
Dim a As New Application
Dim sl As PowerPoint.slide
Dim sh As PowerPoint.shape
Dim c As PowerPoint.View
Dim i As Integer
i = 1
Dim str As String
str = ""
Set c = Application.ActiveWindow.View
For Each sl In PowerPoint.ActivePresentation.Slides
c.GotoSlide i
 str = str + "page" + VBA.str(i) + vbLf
 For Each sh In sl.Shapes
   sh.Select
   str = str + a.ActiveWindow.Selection.TextRange.Text + vbLf
 Next sh
i = i + 1
str = str + "----------------------------------------------" + vbLf
Next sl
Dim d As New Word.Application
Dim dd As Word.Document
d.Visible = True
d.Activate
Set dd = d.Documents.Add
dd.Select
dd.Words.First.Text = str
End Sub

 
 
  • 标签:PPT文字提取 
  •  
    Re:Office宏 PowerPoint提取文字到Word
    [ 2008-3-26 20:50:00 | By: 访客wBRe72(游客) ]
     
    访客wBRe72(游客)沼液生物农药的优越性
     
    个人主页 | 引用 | 返回 | 删除 | 回复
     
     
    Re:Office宏 PowerPoint提取文字到Word
    [ 2008-3-25 21:31:00 | By: 访客vAQd7H(游客) ]
     
    访客vAQd7H(游客)沼液生物农药的优越性
     
    个人主页 | 引用 | 返回 | 删除 | 回复
     
     
    Re:Office宏 PowerPoint提取文字到Word
    [ 2007-11-21 15:22:00 | By: wood9818 ]
     
    wood9818先将ppt另存为网页文件,然后打开,就可以任你复制其中的所有内容,用ctrl+a 就可以把所有的ppt都转化成 word或txt了
     
     
    发表评论:
    生物谷博客正在载入数据,请稍等...

    生物谷博客正在载入数据,请稍等...

    生物谷博客正在载入数据,请稍等...
    时 间 记 忆
    <<  < 2007 - 11 >  >>
    1 2 3
    4 5 6 7 8 9 10
    11 12 13 14 15 16 17
    18 19 20 21 22 23 24
    25 26 27 28 29 30
    最 新 评 论
    生物谷博客正在载入数据,请稍等...
    专 题 分 类
    生物谷博客正在载入数据,请稍等...
    最 新 日 志
    生物谷博客正在载入数据,请稍等...
    最 新 留 言
    生物谷博客正在载入数据,请稍等...
    搜 索
    用 户 登 录
    生物谷博客正在载入数据,请稍等...
    友 情 连 接
    博 客 信 息
    生物谷博客正在载入数据,请稍等...


    天空网站统计分析系统  
    Powered by Oblog.