jsolutions
Programmer
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.
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.