Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preview Powerpoint Slides on a VBA Form

Status
Not open for further replies.

cvmandach

IS-IT--Management
Nov 1, 2002
8
CH
I am about to program a Powerpoint Tool. In this tool, I would like to allow users to select one or more slides out of a Powerpoint presentation. For this, I would like a slide preview on a VBA form in powerpoint to allow the user to select the desired slides. But I have no idea how this could be done, since there are no OLE components available in Powerpoint VBA that would permit this slide preview on the form.

I even tried to create a VB activeX dll with an OLE object showing the Powerpoint presentation on a VB form, but this doesn't work properly (can't select a slide other than the first one to be showed on the form, unless the OLE object is activated. But this also activates Powerpoint on the VB form...).

Any ideas are very welcome!
 
Sorry, but what's wrong w/ the slide pane that is an innate feature in pwrpt? [yinyang] Tranpkp [pc2]
************************************
- Let me know if this helped/worked!
Please remember to give helpful posts the stars they deserve!
This facilitates others navigating through the threads / posts!
 
Thanks for your reply. I have found a work-around for this problem (although it didn't help much, as you will see). On the VB dll form, I put two OLE objects: one empty object (visible) and a second (invisible) containing the source powerpoint presentation with its slides. Whenever the user selects a slide, this slide is copied from the invisible OLE to the clipboard (a corresponding method to copy a slide is available), and then from the clipboard to the visible OLE objects. Maybe not the best way, but works - unless this VB dll form is called from within Powerpoint: in this case, the Powerpoint application would be client (user form with code showing the VB dll form) and server (OLE object showing slides) at the same time - and this ends somewhere in the nowhere land...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top