Sub OpenPPSForEdit()
On Error GoTo ErrHandle
Dim pShow As Presentation
' Lock the window to prevent refreshing
' See above article example for the code
ScreenUpdating = False
'Open the show, however use additional flag - WithWindow set to FALSE
Set pShow = Presentations.Open("C:\sample.pps", _
WithWindow:=msoFalse)
'Open a window now to the presentation for editing
pShow.NewWindow
' Unlock the window to start refreshing again
ScreenUpdating = True
Exit Sub
ErrHandle:
If Err.Number <> 0 Then
MsgBox Err.Number & " " & Err.Description, _
vbCritical + vbOKOnly, "Error"
End If
End Sub
通过代码打开PwoerPoint放映文件
bigyoung 发表于: 2008-6-12 11:03 来源: 扑奔PPT网
大家对 通过代码打开PwoerPoint放映文件 的评论
- ltt4410 发表于 2011-4-02 13:48:36
-
这个咋用、。。
- xiahou 发表于 2012-12-06 13:43:23
-
真的不错,感谢分享!
最新PPT模板
最新贴子
PPT热贴