Friends,
When my user double-clicks a file name in a list control, I create an instance of the appropriate application and open the file, based on the extension (.doc, .xls, .ppt).
This works when I open Word and Excel, but when I try to open a Powerpoint presentation, I get the following run time error
Presentation (unknown member): Invalid request.
The PowerPoint Frame Window does not exist.
Here is the code snippet:
Case "ppt":
Dim appPPT As PowerPoint.Application
Set appPPT = New PowerPoint.Application
appPPT.Presentations.Open FileName:=FileorPathName
appPPT.Visible = True
Thanks in advance.
p
When my user double-clicks a file name in a list control, I create an instance of the appropriate application and open the file, based on the extension (.doc, .xls, .ppt).
This works when I open Word and Excel, but when I try to open a Powerpoint presentation, I get the following run time error
Presentation (unknown member): Invalid request.
The PowerPoint Frame Window does not exist.
Here is the code snippet:
Case "ppt":
Dim appPPT As PowerPoint.Application
Set appPPT = New PowerPoint.Application
appPPT.Presentations.Open FileName:=FileorPathName
appPPT.Visible = True
Thanks in advance.
p