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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Powerpoint toolbars

Status
Not open for further replies.

jsolutions

Programmer
Jul 18, 2002
157
US
First, I know that I am trying to use PowerPoint in a way it was never intended, but it is a necessary evil.

I've created a way for a Powerpoint to maintain two versions of the same document (Instructor and student). the Instructor version has multiple comments that the student version does not.

The macros work like a charm. I want to use this as a template and make it easy to use. So, I created a toolbar with two buttons - one for student, one for instructor. The problem is that when you create a new document based on the template, the toolbar buttons still link to the template document (which after a little thinking actually made sense). So, when you click the buttons, they execute on the original template and not on the current document. If I go to Tools...Macros... and maually execute the macros, they work fine.

So, I would like to programatically generate the toolbar to link it to the macros within the current document. Not as easy I would like it to be, but I can figure it out (unless someone has some good code they would like to share). The issue is that I cannot find a way to execute this code when the document is opened. I've used events such as "AfterPresentationOpen" event. But this seems to only fire when you programatically open a file. I need something like Word's open event that fires any time the document is opened.

Any thoughts on this (or alternate solutions) would be appreciated.

 
Hi Skip - thanks for the link. I looked at it, and it looks like I would have to build a full VB application to trap this one event (open)... or am I completely missing something?

It's possible from within VBA to build a toolbar, so all I need to do is trap the event when the PPT document opens. Do you know if this is possible without having to build an entirely separate application?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top