Opening Powerpoint from Excel

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

Guest

Hello

What is the code to open a powerpoint presentation from Excel. Also what references do i need

Thanks in advance
James
 
Hi James

Dim pptApp As Object
Dim pptpres As Presentation
Set pptApp = CreateObject("PowerPoint.Application")
With pptApp
.Visible = True
.WindowState = ppWindowMaximized
End With
ChDrive (ThisWorkbook.Path)
ChDir (ThisWorkbook.Path & "\")
pptApp.Presentations.Open FileName:=ThisWorkbook.Path &
"\YourPresentation.ppt",
 
Hi James,

With this code, you don't need any references

Dim ppApp As Object
Set ppApp = CreateObject("Powerpoint.Application")
ppApp.Visible = True

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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