[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 386
  • Last Modified:

Add code/script/macro to each page/slide of a PPT presentation, so it executes automatically when slide is played/shown

1. I need to add code to each page/slide of a PPT presentation, so it executes automatically when slide is played/shown

2. The code will run an executable (a different one for each page).

3. The code can be in the form of VB/VBA/Script/Macro or action button

4. I would appreciate a code sample (the entire thing) since i'm new at this.  

Thanks
0
msjlogicjunction
Asked:
msjlogicjunction
  • 2
1 Solution
 
thydzikCommented:
have a look at sub OnSlideShowPageChange

http://officeone.mvps.org/vba/run_macro_at_slide.html
0
 
thydzikCommented:
to add, this code provides the basic structure to run code at each slide
Sub OnSlideShowPageChange(ByVal SSW As SlideShowWindow)
 
    Select Case SSW.View.CurrentShowPosition
        Case 1
            MsgBox "at one"
        Case 2
            MsgBox "at two"
        Case 3
            MsgBox "at three"
    End Select
End Sub

Open in new window

0
 
msjlogicjunctionAuthor Commented:
Thanks again.  I posted a variation on this question  ("Run action button automatically...)" since i didn't seem to be getting any hits on the original and really needed a response -  you've answered them both very well. Thanks for the effort.
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now