When Powerpoint 2010 opens a specific template, and a NEW SLIDE is added, I wish VBA to automatically modify the text of the template footer, to display the pptx file name, on each slide.
However, EE expert JSRWilson (http://www.experts-exchange.com/articles/4496/PowerPoint-Events
) writes that Powerpoint has no internal 'xl_workbook'-style events. Instead I should write a 'PresentationNewSlide' event via an addIn.
Following the EE article, I made a class module and a standard module in a PowerPoint macro-enabled template (fileName: PPMacro_Enabled_Template 22062015) as a 'Microsoft PowerPoint Macro-Enabled Design Template'
The class module contained this code:
Private Sub PPTEvent_PresentationNewSl
ide(ByVal Sld As Slide)
MsgBox "You inserted slide " & Sld.SlideIndex
and the module was located at C:\Users\Roger\AppData\Roa
Having closed all powerpoint applications, I connected to this addin via the Add-in browser of the Powerpoint file in which I wanted to detect the addition of a new slide. However, when I added a new slide, the msgbox in the class module (above) did not fire.
Can you tell me what I need to do to get this going?
- the addin as a Microsoft PowerPoint Macro-Enabled Design Template, this has been imported to EE site as .POT file (since site does not recofnise .POTM files). PLEASE rename as .POTM before opening!!
' in which I need to detect a 'PresentationNewSlide' event via vba. Likewise this is presented as a .pptx file and needs to be opened as a pptm version.... please change pptx to pptm