VBA高手请进,急呀~~~~~~~~
怎样用vb打开powerpoint文件,并不让它在状态栏中显示。 问题点数:0、回复次数:2Top
1 楼rainstormmaster(暴风雨 v2.0)回复于 2003-05-03 16:48:36 得分 0
打开powerpoint文件:
用API函数ShellExecute,示例如下:
Option Explicit
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
Const SW_SHOWNORMAL = 1
Private Sub Form_Load()
ShellExecute Me.hwnd, "open", "123.ppt", vbNullString, App.Path, SW_SHOWNORMAL
End Sub
Top
2 楼Vii(Vii)回复于 2003-05-03 21:53:23 得分 0
引用,.visible=false
或者楼上的SW_SHOWNORMAL改称SW_HIDE=0Top




