标题: 怎样将ppt文件转换成doc文件 [打印本页] 作者: 透明风 时间: 2004-3-7 13:46 标题: 怎样将ppt文件转换成doc文件 由于学习需要,要将ppt文件转换成doc文件,可是试了一下,并没有这个功能啊,应该怎么弄,有朋友知道吗?作者: 拯救危机 时间: 2004-3-7 16:05 标题: 怎样将ppt文件转换成doc文件 这个你需要编写VBA程序了,帮你在网上搜了一下,代码如下:
Attribute VB_Name = "PPT2Doc"
Sub PPT2Doc()
'
' PPT2Doc Macro
' Macro created 8/20/2003 by Harveer Singh
' (c) Harveer Singh, 2003
' Released under GPL http://www.opensource.org/licenses/gpl-license.html
' Please maintain this copyright notice in all modified versions of this code
' This code is provided 'as-is' and no warranties are provided.
On Error Resume Next
' Dummy Breakpoint - You might want to put a breakpoint here, since w/o breaking the code atleast once,
' only first slide will be copied.
Debug.Print ""
' Dummy Breakpoint Over
Dim aPPT As PowerPoint.Application
Dim i
Dim sld
Dim presName As String
Dim slideCount As Integer
Dim startTime, endTime As Date
Dim originalItalicStatus, originalBoldStatus As Boolean
startTime = Time
originalItalicStatus = Application.Selection.Font.Italic
originalBoldStatus = Application.Selection.Font.Bold
Set aPPT = CreateObject("PowerPoint.Application")
presName = Left(aPPT.ActivePresentation.Name, Len(aPPT.ActivePresentation.Name) - 4)