Execute>Break>Crash
New member
- Local time
- Today, 00:05
- Joined
- Mar 1, 2011
- Messages
- 2
Hi everyone, first time poster here.
I've been looking for the past 4 hours on how exactly to do this but have yet to get an answer that works for me.
Quite simply, I want a PowerPoint presentation, embedded on a form, to run when said form is loaded or opened.
I have tried a variety of methods and have gotten close, but not enough.
I've tried inserting a PPT using an unbound object and using the "SlideShowSettings.Run" method in window mode, but this opens up a separate window in which the slideshow is presented.
I've looked for a 'Presentation_Open()' event listener, to be programed on the ppt file side, where the presentation would run upon opening. No success.
Currently I am attempting to link a bound object in the form to an existing ppt file and automating this way, but I can't seem to find a way to run it. Here's what I got:
When the form loads, the PPT open up but I don't know how to get it to run. I've tried saving the PPT as a PPSX file, but that does not run either.
I would be truly grateful to anyone who can help!
Thanks,
-C
I've been looking for the past 4 hours on how exactly to do this but have yet to get an answer that works for me.
Quite simply, I want a PowerPoint presentation, embedded on a form, to run when said form is loaded or opened.
I have tried a variety of methods and have gotten close, but not enough.
I've tried inserting a PPT using an unbound object and using the "SlideShowSettings.Run" method in window mode, but this opens up a separate window in which the slideshow is presented.
I've looked for a 'Presentation_Open()' event listener, to be programed on the ppt file side, where the presentation would run upon opening. No success.
Currently I am attempting to link a bound object in the form to an existing ppt file and automating this way, but I can't seem to find a way to run it. Here's what I got:
Code:
Private Sub Form_Load()
ANS_Presentation.Class = "PowerPoint.Application.Presentations"
ANS_Presentation.OLETypeAllowed = acOLELinked
' Specify source file.
ANS_Presentation.SourceDoc = "C:\Path.pptx"
' Specify data to create link to.
ANS_Presentation.SourceItem = Presentation
' Create linked object.
ANS_Presentation.Action = acOLECreateLink
' Adjust control size.
ANS_Presentation.SizeMode = acOLESizeZoom
End Sub
When the form loads, the PPT open up but I don't know how to get it to run. I've tried saving the PPT as a PPSX file, but that does not run either.
I would be truly grateful to anyone who can help!
Thanks,
-C