Consulting

Results 1 to 3 of 3

Thread: Issues with "OnSlideShowPageChange"

  1. #1
    VBAX Newbie
    Joined
    Nov 2017
    Posts
    2
    Location

    Issues with "OnSlideShowPageChange"

    Hello guys

    I have a weird issue and I am trying to find out if I am missing something or if something is corrupted on my computer.

    So, I created a file with a sub "OnSlideShowPageChange" that only displays the page number in a module. When I open the file and click directly on the SlideShow icon, the presentation runs fine but without any messages from the MsgBox commands. Now, when I click on the Developper tab and the VisualBasic icon in order to display the editor and that I don't change a thing and just close the editor, the messages appears when I run the presentation again...

    Any ideas what could be wrong? I am using PPT 2016 on Windows 10.

    VBA - Events 3.pptm

    Thanks


    Rick
    Last edited by rhille; 11-03-2017 at 06:35 PM.

  2. #2
    VBAX Sage
    Joined
    Apr 2007
    Location
    United States
    Posts
    8,726
    Location
    Seems to work with PP 2016

    But see this article and give it a try


    http://www.pptfaq.com/FAQ01152_OnSli...s_not_fire.htm


    Problem

    Your code that depends on the OnSlideShowPageChange( SHW as SlideshowWindow ) event works when run from within VBA or when you launch the presentation from within PowerPoint, but not when you start the show by doubleclicking the icon for the PPS or PPSM. The slide show launches normally, but the code in your OnSlideShowPageChange subroutine never runs.

    Solution

    Add an Active-X control (from the Developer tab) on first slide (drag it just off the slide if you don't want it visible during the slide show).
    This forces VBA to initialize when the presentation starts, so the event gets triggered and your code runs.
    ---------------------------------------------------------------------------------------------------------------------

    Paul


    Remember: Tell us WHAT you want to do, not HOW you think you want to do it

    1. Use [CODE] ....[/CODE ] Tags for readability
    [CODE]PasteYourCodeHere[/CODE ] -- (or paste your code, select it, click [#] button)
    2. Upload an example
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) / Upload Files / Done
    3. Mark the thread as [Solved] when you have an answer
    Thread Tools (on the top right corner, above the first message)
    4. Read the Forum FAQ, especially the part about cross-posting in other forums
    http://www.vbaexpress.com/forum/faq...._new_faq_item3

  3. #3
    VBAX Newbie
    Joined
    Nov 2017
    Posts
    2
    Location
    Hello Paul

    Thank you for your answer. It seems like it solved the issue.

    Thanks again


    Rick

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •