samuelsisgay
Programmer
How would you load and run a powerpoint slide show through a single click event procedure?
I tryed by declaring the variable but didnt get it.
Ie.
Dim ppApp As PowerPoint.Application
Set ppApp = CreateObject("Powerpoint.Application"
' Make it visible.
ppApp.Visible = True
ppApp.Open ("C:\WINDOWS\Desktop\sanju\VB Major Project YR12\MajorProject.Empathy.ppt"
' Prepare and run the slide show.
With ppPres.SlideShowSettings
.ShowType = ppShowTypeKiosk
.LoopUntilStopped = msoTrue
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.Run
End With
' Sleep so user can watch the show.
Sleep (15000)
' Clean up.
ppApp.Quit
I tryed by declaring the variable but didnt get it.
Ie.
Dim ppApp As PowerPoint.Application
Set ppApp = CreateObject("Powerpoint.Application"
' Make it visible.
ppApp.Visible = True
ppApp.Open ("C:\WINDOWS\Desktop\sanju\VB Major Project YR12\MajorProject.Empathy.ppt"
' Prepare and run the slide show.
With ppPres.SlideShowSettings
.ShowType = ppShowTypeKiosk
.LoopUntilStopped = msoTrue
.RangeType = ppShowAll
.AdvanceMode = ppSlideShowUseSlideTimings
.Run
End With
' Sleep so user can watch the show.
Sleep (15000)
' Clean up.
ppApp.Quit