open powerpoint using visual basic in excel

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to open a PowerPoint presentation using a macro built in Excel.
Is it possible to do this??
 
Hi,

Some very simple code to get you started.

Sub OpenPPT()

Dim objPPT As Object
Dim objPres As Object

Set objPPT = CreateObject("PowerPoint.Application")
objPPT.Visible = True
Set objPres = objPPT.presentations.Open("C:\test.ppt")

End Sub

Cheers
Andy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top