Run Embedded PPT Slideshow on Form Load

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:

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
 
Does anyone have any ideas here? If what you're thinking is "That's impossible" or "You are really dumb." That would help.

Should I just give up on the idea?

Thanks.

-C
 
Have you gotten it to work? well i'm trying to do is kinda similar, but i dont want it to open but i want to have buttons to click through the slides on the form itself. I have gotten really close myself but i have been burning up the internet for several days now trying to figure this out. Plus another thing i want to have dumb it down to the simipliest form so a new user can just just add the ppt and be done. i hope i didnt confuse you.
 

Users who are viewing this thread

Back
Top Bottom