Hello everyone,<br>
I am trying to open a powerpoint presentation from a command button that I have placed on a form. I am trying to use the getobject method to call the form. Below I have the code that I have written, and I am wondering if this is the correct way to write this particular getobject statement. This is the first time I have used getobject for powerpoint.<br>
<br>
Private Sub Command18_Click()<br>
Call GetPowerPoint<br>
End Sub<br>
<br>
Private Sub GetPowerPoint()<br>
Dim pps As PowerPoint.Application, strpps As String<br>
strpps = "c:\program files\microsoft office\office\powerpnt.exe"<br>
strpps = strpps & "C:\maillabels\mailinglabels.pps"<br>
Set pps = GetObject(strpps)<br>
pps.Visible = msoFalse<br>
Set pps = Nothing<br>
End Sub<br>
<br>
<br>
Thanks for any help
I am trying to open a powerpoint presentation from a command button that I have placed on a form. I am trying to use the getobject method to call the form. Below I have the code that I have written, and I am wondering if this is the correct way to write this particular getobject statement. This is the first time I have used getobject for powerpoint.<br>
<br>
Private Sub Command18_Click()<br>
Call GetPowerPoint<br>
End Sub<br>
<br>
Private Sub GetPowerPoint()<br>
Dim pps As PowerPoint.Application, strpps As String<br>
strpps = "c:\program files\microsoft office\office\powerpnt.exe"<br>
strpps = strpps & "C:\maillabels\mailinglabels.pps"<br>
Set pps = GetObject(strpps)<br>
pps.Visible = msoFalse<br>
Set pps = Nothing<br>
End Sub<br>
<br>
<br>
Thanks for any help