Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetObject method for PowerPoint

Status
Not open for further replies.

ITA

Programmer
Nov 9, 1999
18
0
0
US
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 = &quot;c:\program files\microsoft office\office\powerpnt.exe&quot;<br>
strpps = strpps & &quot;C:\maillabels\mailinglabels.pps&quot;<br>
Set pps = GetObject(strpps)<br>
pps.Visible = msoFalse<br>
Set pps = Nothing<br>
End Sub<br>
<br>
<br>
Thanks for any help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top