H
Hans-Peter Pflaum
Hi all,
I need to have an addin that puts on every presentation that is opened a button on the
slidemaster. Associated with a macro that shows a little dialog to allow my instructors to
give a feedback on that slide. (I need to have that in Slideshow mode, therefore a Menu button won't do...)
I coded the macro "AddFeedback" along with "Auto_Open" and "Auto_Close" and saved it as .ppa addin.
There are two problems I face:
- When PPT starts the addin is loaded prior to the presentation, therefore the button doesn't load in the presentation. I tried the sleep(<time>) but that seemed to pause ppt completely.
- If I manage to load the addin manually when the presentation is already open, the button is placed. But the "AddFeedback" macro isn't run when clicking on it. (It seems not to be visible from the presentation)
ActivePresentation.SlideMaster.Shapes.AddShape(msoShapeActionButtonInformation, 0#, 0#, 16#, 16#).Select
With ActiveWindow.Selection.ShapeRange.ActionSettings(ppMouseClick)
.Run = "AddFeedback" ' Tried also Feedback.ppa!AddFeedback
.SoundEffect.Type = ppSoundNone
.AnimateAction = msoTrue
End With
When having the macros locally in the presentation file and calling the Auto_Open/Close manually it works fine.
Thanks in advance for any hints
HaPe
I need to have an addin that puts on every presentation that is opened a button on the
slidemaster. Associated with a macro that shows a little dialog to allow my instructors to
give a feedback on that slide. (I need to have that in Slideshow mode, therefore a Menu button won't do...)
I coded the macro "AddFeedback" along with "Auto_Open" and "Auto_Close" and saved it as .ppa addin.
There are two problems I face:
- When PPT starts the addin is loaded prior to the presentation, therefore the button doesn't load in the presentation. I tried the sleep(<time>) but that seemed to pause ppt completely.
- If I manage to load the addin manually when the presentation is already open, the button is placed. But the "AddFeedback" macro isn't run when clicking on it. (It seems not to be visible from the presentation)
ActivePresentation.SlideMaster.Shapes.AddShape(msoShapeActionButtonInformation, 0#, 0#, 16#, 16#).Select
With ActiveWindow.Selection.ShapeRange.ActionSettings(ppMouseClick)
.Run = "AddFeedback" ' Tried also Feedback.ppa!AddFeedback
.SoundEffect.Type = ppSoundNone
.AnimateAction = msoTrue
End With
When having the macros locally in the presentation file and calling the Auto_Open/Close manually it works fine.
Thanks in advance for any hints
HaPe